Low: chat-specific generation parameters silently reset after reload or restart
Severity
Low / persistence — chat-specific generation parameters silently reset to global defaults after a full app restart or reload, even for a saved existing conversation. The UI says the parameters “Apply to this chat only,” but the selection is not part of the persisted chat or a browser storage record.
Evidence
GenerationParamsPopover.tsx:102–116tells the user “Applies to this chat only. Defaults for every chat live in Settings → AI Model.”useChatStore.ts:75–81, 152–160, 275–281holdsgenerationOptionsByThreadonly in the initial in-memory Zustand state.setThreadOptionsmodifies the in-memory map and does not persist it.ChatPage.tsx:232–241reads only this map for overrides;ChatPage.tsx:423–437includes those options in individual generation requests, not in the chat's persisted properties.- The durable
ChatResponseschema has no per-chat generation-options field.
Deterministic reproduction
- Open a saved chat and change its response style to Creative, set a custom Context window or fixed Seed.
- Navigate between chats in the same SPA session. Actual: values correctly remain specific to the original chat.
- Reload the app or close and reopen the desktop window; reopen that saved chat.
- Actual:
generationOptionsByThreadinitializes to{}, so the parameters silently revert to global defaults while the old conversation remains. - Expected: per-chat parameters either survive reopening the same saved chat, or the control explicitly labels them as session-only so the user doesn't mistake an ephemeral tweak for a durable conversation preference.
Fix/tests
Prefer storing overrides in the chat's versioned record (with safe schema migration and revision semantics) or a bounded browser-side per-thread persistence layer, clearly separating that durability from server settings. Add reload/reopen tests, and a reset-to-defaults test to avoid resurrecting deleted overrides. If ephemeral scope is deliberate, update UI copy and documentation and test the intended reset.
Reviewed revision: e824fe2dcba0d1be127c9fff165f776186dc37e9. Static persistence-path inspection; app-restart test not executed.