This commit is contained in:
Timothy Jaeryang Baek
2026-06-01 10:09:40 -07:00
parent 83890f18b9
commit 7594823edd
+4
View File
@@ -181,6 +181,7 @@
let files = [];
let params = {};
$: if (chatIdProp) {
navigateHandler();
}
@@ -2824,6 +2825,9 @@
const saveControls = async () => {
if (!$chatId || $temporaryChatEnabled) return;
const loaded = chat?.chat ?? {};
if (equal(params, loaded.params ?? {}) && equal(chatFiles, loaded.files ?? [])) return;
await updateChatById(localStorage.token, $chatId, { params, files: chatFiles }).catch((err) =>
console.error('[controls autosave]', err)
);