Skip to content

fix(cli): save and load per-agent model selection#6259

Open
shssoichiro wants to merge 1 commit intoKilo-Org:mainfrom
shssoichiro:fix-cli-per-agent-model
Open

fix(cli): save and load per-agent model selection#6259
shssoichiro wants to merge 1 commit intoKilo-Org:mainfrom
shssoichiro:fix-cli-per-agent-model

Conversation

@shssoichiro
Copy link

Context

Fixes #6220

Implementation

Setting the model per-agent is already supported, but is not persisted across sessions. This change includes the selected model when we save and load the configuration so that it is persisted properly.

Screenshots

Screencast_20260224_120010.webm

How to Test

  • Set a custom model for each agent in the CLI
  • Exit the CLI
  • Reload the CLI
  • The custom model per agent should still be set

@kilo-code-bot
Copy link
Contributor

kilo-code-bot bot commented Feb 24, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • packages/opencode/src/cli/cmd/tui/context/local.tsx

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Found a potential duplicate:

#12274 - fix: Model Change persistes across sessions
anomalyco/opencode#12274

This PR appears to directly address the same issue — persisting model selection across sessions. It's likely the same fix or a related attempt at solving this problem.

@shssoichiro
Copy link
Author

#12274 appears to be related to a different issue, regarding sub-agents.

@shssoichiro shssoichiro force-pushed the fix-cli-per-agent-model branch from 6b37dea to 30322f3 Compare February 26, 2026 22:58
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.

CLI does not remember model choices per agent

1 participant