Skip to content

[codex] isolate model selection per thread#262

Open
musnows wants to merge 5 commits into
KunAgent:developfrom
musnows:codex/thread-model-selection
Open

[codex] isolate model selection per thread#262
musnows wants to merge 5 commits into
KunAgent:developfrom
musnows:codex/thread-model-selection

Conversation

@musnows

@musnows musnows commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Store composer model/provider selections per thread instead of only globally.
  • Restore the active thread's saved model selection when models load or when switching threads.
  • Keep global Kun default updates limited to the no-active-thread picker state.

Root cause

The composer model state was backed by a single global store/localStorage entry, so selecting a model in one conversation changed the picker state used by other conversations.

Validation

  • npm test -- src/renderer/src/store/chat-store-helpers.test.ts src/renderer/src/store/chat-store-app-actions.test.ts
  • npm run typecheck

@musnows musnows marked this pull request as ready for review June 14, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant