Skip to content

Model selection not applied after restart - config shows Opus 4.5 but Sonnet 4 is used #7458

Closed

Description

@JulianMason

Description

After changing the model to Claude Opus 4.5 via /models command and restarting OpenCode, the session still uses Claude Sonnet 4 despite:

  1. The config file correctly showing the new model
  2. The TUI footer displaying "Claude Opus 4.5 (latest)"
  3. Multiple full restarts of OpenCode

When asking the model "what model are you", it consistently responds with "Claude Sonnet 4 (claude-sonnet-4-20250514)".

Steps to Reproduce

  1. Run /models and select anthropic/claude-opus-4-5-20251101
  2. OpenCode shows: "The model change to Opus 4.5 was saved to your config..."
  3. Verify opencode.jsonc contains: "model": "anthropic/claude-opus-4-5-20251101"
  4. Fully exit and restart OpenCode
  5. Start a new session
  6. Ask "what model are you"
  7. Model responds it is Claude Sonnet 4, not Opus 4.5

Expected Behavior

After restart, the new session should use Claude Opus 4.5 as configured.

Actual Behavior

  • TUI footer shows "Claude Opus 4.5 (latest) Anthropic" (correct)
  • Actual model responding is Claude Sonnet 4 (incorrect)

Configuration

{
  "$schema": "https://opencode.ai/config.json",
  "model": "anthropic/claude-opus-4-5-20251101",
  // ... rest of config
}

Environment

  • Platform: macOS (darwin)
  • OpenCode caller: vscode
  • No model-related environment variable overrides present

Screenshots

The TUI clearly shows the discrepancy - footer says Opus 4.5 but model self-identifies as Sonnet 4.

Additional Context

This may be a caching issue or the model parameter not being correctly passed to the Anthropic API. The fallback to Sonnet 4 happens silently with no error messages.

Activity

  1. github-actions commented on Jan 9, 2026

    @github-actions
    Contributor

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

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

  2. ArnoAldridge commented on Jan 12, 2026

    @ArnoAldridge

    I have the same problem

    Image Image
  3. rekram1-node commented on Jan 12, 2026

    @rekram1-node
    Collaborator

    guys the model is LYING dont listen to what it claims to be you can sniff the requests the selected model IS correct, claude code gets arround this issue by adding to the system prompt:

    You are

    We dont do that but should just to prevent people from thinking this

    But know that llms lie and asking them what they are isnt reliable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions