-- Bugfix: preserve the chat's selected variant when changing model or agent on an existing chat (regression from per-chat scoping in v0.133.1). The chat's currently used `:variant` is now persisted on every prompt (it was previously only kept in the in-flight prompt context, never written back to the chat record), so `chat/selectedModelChanged` keeps the chat's persisted `:variant` if it is still supported by the new model, `chat/selectedAgentChanged` falls back to the chat's persisted `:variant` when the new agent has no variant configured (the agent's own `:variant` still wins when present), and resume flows (`chat/open`, `/resume`) restore it.
0 commit comments