fixed recipe schedule jobs (#3880)

This commit is contained in:
Lifei Zhou
2025-08-07 11:18:39 +10:00
committed by GitHub
parent a646c7a0f5
commit 67e63624ab
4 changed files with 25 additions and 7 deletions
+5 -3
View File
@@ -143,7 +143,7 @@ function BaseChatContent({
chatState,
error,
setMessages,
input: _input,
input,
setInput: _setInput,
handleSubmit: engineHandleSubmit,
onStopGoose,
@@ -231,7 +231,9 @@ function BaseChatContent({
useEffect(() => {
const isProcessingResponse =
chatState !== ChatState.Idle && chatState !== ChatState.WaitingForUserInput;
handleAutoExecution(append, isProcessingResponse);
handleAutoExecution(append, isProcessingResponse, () => {
setHasStartedUsingRecipe(true);
});
}, [handleAutoExecution, append, chatState]);
// Use shared session continuation
@@ -528,7 +530,7 @@ function BaseChatContent({
chatState={chatState}
onStop={onStopGoose}
commandHistory={commandHistory}
initialValue={_input || ''}
initialValue={input || ''}
setView={setView}
numTokens={sessionTokenCount}
inputTokens={sessionInputTokens || localInputTokens}