WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Opus 4.5 selection serves Sonnet 4 instead - subscription routing bug #5226

@simmonsgoku337-wq

Description

@simmonsgoku337-wq

Description

OpenCode is serving the wrong Claude model for subscription users.
When claude-opus-4-5-20251101 is selected, the system serves claude-sonnet-4-20250514 instead.

Evidence:

  1. Model selection confirms Opus 4.5:
    // ~/.local/state/opencode/model.json
    {recent:[{providerID:anthropic,modelID:claude-opus-4-5-20251101}]}

  2. Model identifies as Sonnet 4:
    I'm Claude Sonnet 4 (claude-sonnet-4-20250514)

  3. Knowledge cutoff confirms wrong model:

    • Expected (Opus 4.5): January 2025
    • Actual: April 2024 (Sonnet 3.5/3.6 range)

Related: Issue #3063 was similar but dismissed as "models lying." Knowledge cutoffs are factual and cannot be misrepresented.

OpenCode version

1.0.134

Steps to reproduce

  1. Select claude-opus-4-5-20251101
  2. Ask: "What model are you?" and "What is your knowledge cutoff date?"
  3. Model reports as Sonnet with April 2024 cutoff

Environment:

  • OpenCode: 1.0.134
  • Provider: Anthropic subscription
  • OS: Linux

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04.3 LTS

Terminal

VS Code integrated terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions