Model select always prioritizes OpenCode Zen over last used? #3956

Open
opened 2026-02-16 17:42:05 -05:00 by yindo · 3 comments
Owner

Originally created by @fuzzyhope1502 on GitHub (Dec 29, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Not entirely sure if this is a bug or intentional.

I use both Claude Pro, as well as Zen. My workflow is using GPT 5.1 Codex via Zen for planning, then for Build I first saturate my usage for Opus 4.5 via Claude Pro, and once that hits the cap I will swap to Zen as a fallback.

Something I've noticed is even if my last used model was Claude Opus 4.5 (latest) Anthropic, if I exit opencode and then reopen it, it will default back to Claude Opus 4.5 OpenCode Zen. Even if I favourite the Anthropic version it will still default to OpenCode Zen.

I've been stung by this a few times already where I intend to use my Claude Pro usage first, and end up using a some of my backup OpenCode Zen credits instead.

Another thing to add, not entirely sure if related to this issue, but the same thing happens with Build/Plan defaults. I swear at some point in the past it would keep the last used model for Build/Plan, but now it just always defaults to OpenCode Zen ones.

OpenCode version

1.0.207

Steps to reproduce

  1. Connect Providers "Claude Pro/Max" and "OpenCode Zen"
  2. Select Claude Opus 4.5 Anthropic as your model.
  3. Run some task with it.
  4. Close OpenCode
  5. Reopen OpenCode, it will default back to Claude Opus 4.5 OpenCode Zen

Screenshot and/or share link

In the video, I don't bother running a prompt to save video upload length/size, but the same thing happens even if you execute a task then quit afterwards.

https://github.com/user-attachments/assets/e7dbc406-d344-47d6-a22a-f77daccec58a

Operating System

macOS

Terminal

Ghostty

Originally created by @fuzzyhope1502 on GitHub (Dec 29, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Not entirely sure if this is a bug or intentional. I use both Claude Pro, as well as Zen. My workflow is using GPT 5.1 Codex via Zen for planning, then for Build I first saturate my usage for Opus 4.5 via Claude Pro, and once that hits the cap I will swap to Zen as a fallback. Something I've noticed is even if my last used model was `Claude Opus 4.5 (latest) Anthropic`, if I exit opencode and then reopen it, it will default back to `Claude Opus 4.5 OpenCode Zen`. Even if I favourite the Anthropic version it will still default to OpenCode Zen. I've been stung by this a few times already where I intend to use my Claude Pro usage first, and end up using a some of my backup OpenCode Zen credits instead. Another thing to add, not entirely sure if related to this issue, but the same thing happens with Build/Plan defaults. I swear at some point in the past it would keep the last used model for Build/Plan, but now it just always defaults to OpenCode Zen ones. ### OpenCode version 1.0.207 ### Steps to reproduce 1. Connect Providers "Claude Pro/Max" and "OpenCode Zen" 2. Select `Claude Opus 4.5 Anthropic` as your model. 3. Run some task with it. 4. Close OpenCode 5. Reopen OpenCode, it will default back to `Claude Opus 4.5 OpenCode Zen` ### Screenshot and/or share link In the video, I don't bother running a prompt to save video upload length/size, but the same thing happens even if you execute a task then quit afterwards. https://github.com/user-attachments/assets/e7dbc406-d344-47d6-a22a-f77daccec58a ### Operating System macOS ### Terminal Ghostty
yindo added the bugzen labels 2026-02-16 17:42:05 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 29, 2025):

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

  • #6075: Remembering the last model used (issue with simultaneous clients) - discusses how the last used model is global and doesn't persist per-session
  • #4291: Make opencode prefer claude subscription over tokens - related to model selection preference and usage limits

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

@github-actions[bot] commented on GitHub (Dec 29, 2025): This issue might be a duplicate of existing issues. Please check: - #6075: Remembering the last model used (issue with simultaneous clients) - discusses how the last used model is global and doesn't persist per-session - #4291: Make opencode prefer claude subscription over tokens - related to model selection preference and usage limits Feel free to ignore if none of these address your specific case.
Author
Owner

@fyang93 commented on GitHub (Jan 22, 2026):

having the same issue. I have to manually reset my model every time
It's fixed on my side, no sure if it's because of version upgrade

@fyang93 commented on GitHub (Jan 22, 2026): ~~having the same issue. I have to manually reset my model every time~~ It's fixed on my side, no sure if it's because of version upgrade
Author
Owner

@PanchoBubble commented on GitHub (Jan 26, 2026):

Having same issue, this is going on from months now for me.
Its now still picking anthropic over copilot models on my side when I switch modes or restart it

@PanchoBubble commented on GitHub (Jan 26, 2026): Having same issue, this is going on from months now for me. Its now still picking anthropic over copilot models on my side when I switch modes or restart it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3956