fix: chat history snapshot logic to use the same ID as chat and update prompt instructions
- Remove redundant `_chatId` parameter in `takeSnapshot` function - Update prompt instructions for shell commands and artifact handling
This commit is contained in:
@@ -199,7 +199,7 @@ ${value.content}
|
||||
|
||||
const takeSnapshot = useCallback(
|
||||
async (chatIdx: string, files: FileMap, _chatId?: string | undefined, chatSummary?: string) => {
|
||||
const id = _chatId || chatId.get();
|
||||
const id = chatId.get();
|
||||
|
||||
if (!id || !db) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user