Skip to content

fix(copilot): claude-sonnet-4.6 max reasoning effort not available; model key mismatch on refresh #33607

Closed as not planned

Description

@dzianisv

Bug 1: max reasoning effort missing for claude-sonnet-4.6

The Copilot API returns reasoning_effort: ["low", "medium", "high", "max"] for claude-sonnet-4.6, but OpenCode only exposes low/medium/high.

Root cause in transform.ts:

  • @ai-sdk/anthropic + github-copilot fallback path had efforts.filter(v => v !== "max" && v !== "xhigh") with stale comment "Efforts currently supported: low, medium, high"
  • @ai-sdk/github-copilot claude fallback path used WIDELY_SUPPORTED_EFFORTS which excludes max

Verified: output_config.effort=max is accepted by /v1/messages and controls thinking depth; reasoning_effort=max accepted by /chat/completions.

Bug 2: model key mismatch causes metadata loss on every refresh

Static catalog keys claude models as claude-sonnet-4-6 (hyphen). Copilot API returns id: "claude-sonnet-4.6" (dot). The lookup remote.get(model.api.id) fails, so the catalog entry is deleted and re-added as a new entry on every refresh — without prev, losing any metadata carried from the catalog and breaking saved model preferences.

Activity

  1. github-actions commented on Aug 24, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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