-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When switching between modes using the default keybind Alt+M, the model configuration specified in opencode.json is not respected after the initial mode.
Steps to Reproduce
- Configure different models for different modes in
opencode.json:
"agent": {
"build": {
"model": "github-copilot/claude-sonnet-4.5"
},
"plan": {
"model": "github-copilot/gpt-5-mini"
},
"general": {
"model": "opencode/big-pickle"
}
}- Start a session in any mode (e.g., build mode)
- Send the first message - it correctly uses the configured model for that mode
- Switch to a different mode using
Alt+M(e.g., switch to plan mode) - Send another message
Expected Behavior
When switching from build mode to plan mode, the model should change from github-copilot/claude-sonnet-4.5 to github-copilot/gpt-5-mini.
Actual Behavior
The model does not change when switching modes. Only the first message in a session uses the correct model for the initial mode. Subsequent mode switches via Alt+M do not update the active model.
Environment
- Using
opencode.jsonconfiguration with different models per agent mode - Default keybind
Alt+Mfor mode switching
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working