Selected model for agent in TUI doesn't stick between Agent Alternation #2874

Open
opened 2026-02-16 17:37:37 -05:00 by yindo · 4 comments
Owner

Originally created by @ucirello on GitHub (Nov 14, 2025).

Description

Before v1, if my memory serves me well, I was able to select a model for an agent. And therefore, when I alternated between agents the model would change with it.

With since v1, I can alternate between agents, but now, I have to change the model manually.

OpenCode version

1.0.65

Steps to reproduce

  1. Start opencode
  2. Switch to Builder mode; select one model
  3. Switch to Plan mode; select a different model
  4. Switch back to Builder model; the Plan Mode model sticks.

Screenshot and/or share link

No response

Operating System

macOS Tahoe

Terminal

iterm2

Originally created by @ucirello on GitHub (Nov 14, 2025). ### Description Before v1, if my memory serves me well, I was able to select a model for an agent. And therefore, when I alternated between agents the model would change with it. With since v1, I can alternate between agents, but now, I have to change the model manually. ### OpenCode version 1.0.65 ### Steps to reproduce 1. Start opencode 2. Switch to Builder mode; select one model 3. Switch to Plan mode; select a different model 4. Switch back to Builder model; the Plan Mode model sticks. ### Screenshot and/or share link _No response_ ### Operating System macOS Tahoe ### Terminal iterm2
yindo added the opentuibug labels 2026-02-16 17:37:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4281: Model switches back to the original selection after prompting (similar model persistence issue after switching)
  • #4243: Cycle through model do not work when a default model is set (related to agent switching and model selection behavior)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 14, 2025): This issue might be a duplicate of existing issues. Please check: - #4281: Model switches back to the original selection after prompting (similar model persistence issue after switching) - #4243: Cycle through model do not work when a default model is set (related to agent switching and model selection behavior) Feel free to ignore if none of these address your specific case.
Author
Owner

@deepakkum8960-alt commented on GitHub (Nov 14, 2025):

4344

@deepakkum8960-alt commented on GitHub (Nov 14, 2025): ### 4344
Author
Owner

@rekram1-node commented on GitHub (Nov 19, 2025):

/oc does changing agents in the tui not respect the model the agent has defined for it? If that is the case fix it

@rekram1-node commented on GitHub (Nov 19, 2025): /oc does changing agents in the tui not respect the model the agent has defined for it? If that is the case fix it
Author
Owner

@opencode-agent[bot] commented on GitHub (Nov 19, 2025):

Created PR #4514

New%20session%20-%202025-11-19T23%3A19%3A47.294Z
opencode session  |  github run

@opencode-agent[bot] commented on GitHub (Nov 19, 2025): Created PR #4514 <a href="https://opencode.ai/s/eDX1Nomd"><img width="200" alt="New%20session%20-%202025-11-19T23%3A19%3A47.294Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTExLTE5VDIzOjE5OjQ3LjI5NFo=.png?model=opencode/glm-4.6&version=1.0.78&id=eDX1Nomd" /></a> [opencode session](https://opencode.ai/s/eDX1Nomd)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19519318807)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2874