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:
KevIsDev
2025-05-14 11:54:51 +01:00
parent dac37b4344
commit 62769b2fef
2 changed files with 6 additions and 31 deletions

View File

@@ -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;