Skip to content

fix: pin the team model for every opencode session - #88

Closed
kateebonner wants to merge 1 commit into
mainfrom
kate/opencode-model-pin
Closed

fix: pin the team model for every opencode session#88
kateebonner wants to merge 1 commit into
mainfrom
kate/opencode-model-pin

Conversation

@kateebonner

Copy link
Copy Markdown
Contributor

Every amicode session now runs one pinned modelAMICODE_MODEL = anthropic/claude-sonnet-5 — injected via OPENCODE_CONFIG_CONTENT, never read from the user's global opencode config.

Why: machines with an empty global config were silently falling back to opencode's free anonymous model (big-pickle) — the source of the "free-model phrasing variance" (#75's words) behind interview protocol breaks like invented Other options — and two people debugging the same flow could be on different models without knowing.

Verified on the real vendored binary (1.17.3): the pin beats a conflicting user global model; non-conflicting user keys (e.g. permission.doom_loop) still survive the deep-merge. Note: this makes provider auth (opencode auth login) a requirement — no auth fails loudly instead of degrading silently.

🤖 Generated with Claude Code

… global

Sessions on machines with an empty global config were silently running
opencode's free anonymous model (big-pickle) — the source of the
"free-model phrasing variance" behind interview protocol breaks — and
teammates debugging the same flow could be on different models entirely.
AMICODE_MODEL (anthropic/claude-sonnet-5) is now injected in
OPENCODE_CONFIG_CONTENT and wins the deep-merge over any user global
model (verified against the real vendored binary); non-conflicting user
config keys still survive. Requires provider auth — no auth now fails
loudly instead of degrading silently.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kateebonner kateebonner closed this Jul 8, 2026
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.

1 participant