Cortex icon indicating copy to clipboard operation
Cortex copied to clipboard

Low: chat-specific generation parameters silently reset after reload or restart

Open dovvnloading opened this issue 3 weeks ago • 0 comments

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

Deterministic reproduction

  1. Open a saved chat and change its response style to Creative, set a custom Context window or fixed Seed.
  2. Navigate between chats in the same SPA session. Actual: values correctly remain specific to the original chat.
  3. Reload the app or close and reopen the desktop window; reopen that saved chat.
  4. Actual: generationOptionsByThread initializes to {}, so the parameters silently revert to global defaults while the old conversation remains.
  5. 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.

dovvnloading avatar Nov 09 '26 15:11 dovvnloading