Skip to content

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

@fuzzyhope1502

Description

@fuzzyhope1502

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.

opencode.mp4

Operating System

macOS

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions