This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-29 13:03:30 -05:00
1 parent 517cd8d102
commit 55cb98ff56
3 files changed
+210 -211

No files matched your search

+7 -6
View File
@@ -2977,12 +2977,13 @@
const loaded = chat?.chat ?? {};
if (equal(params, loaded.params ?? {}) && equal(chatFiles, loaded.files ?? [])) return;
const res = await updateChatById(localStorage.token, $chatId, { params, files: chatFiles }).catch(
(err) => {
console.error('[controls autosave]', err);
return null;
}
);
const res = await updateChatById(localStorage.token, $chatId, {
params,
files: chatFiles
}).catch((err) => {
console.error('[controls autosave]', err);
return null;
});
// Refresh the dedupe baseline so a later revert still saves.
if (res) chat = res;
};