fix simple snapshot init & auto excute when change app (#3293)

This commit is contained in:
heheer
2024-12-02 21:40:31 +08:00
committed by GitHub
parent 1cef206c13
commit c506442993
8 changed files with 49 additions and 36 deletions

View File

@@ -845,7 +845,15 @@ const ChatBox = ({
hideInUI: true
});
}
}, [isReady, chatStarted, autoExecute?.open, chatRecords, isChatRecordsLoaded]);
}, [
chatStarted,
chatRecords,
isChatRecordsLoaded,
sendPrompt,
isReady,
autoExecute.open,
autoExecute.defaultPrompt
]);
// output data
useImperativeHandle(ChatBoxRef, () => ({