Skip to content

[Bug]: /thinking levels not available for github-copilot provider models (e.g. claude-sonnet-4.6) #99240

Closed as not planned

Description

@alinsavix

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

/thinking high (and all levels except off) rejected with "not supported for github-copilot/claude-sonnet-4.6, use one of: off"

Steps to reproduce

  1. Configure OpenClaw with github-copilot as the provider and a dynamically-discovered model (e.g. claude-sonnet-4.6) in agents.defaults.models with an empty config entry ({})
  2. Start a session using that model
  3. Run /thinking high
  4. Observe error: "not supported for github-copilot/claude-sonnet-4.6, use one of: off"

Expected behavior

OpenClaw should not error, and should use the requested reasoning level

Actual behavior

error: "not supported for github-copilot/claude-sonnet-4.6, use one of: off"

OpenClaw version

2026.6.11 (e085fa1)

Operating system

macOS 26.5.1

Install method

npm global

Model

github-copilot/claude-sonnet-4.6

Provider / routing chain

OpenClaw github-copilot provider plugin → GitHub Copilot API

Additional provider/model setup details

No response

Logs

Screenshots, recordings, and evidence

No response

Impact and severity

Affected: Users wanting to use github copilot models with a(ny) specified reasoning level
Severity: Low (annoying)
Frequency: Always
Consequence: openclaw is potentially dumber, but still works

Additional information

No response

Activity

  1. added
    bug
    on Jul 2, 2026
  2. added
    bug:behavior
    on Jul 2, 2026
  3. clawsweeper commented on Jul 2, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 2, 2026, 5:31 PM ET / 21:31 UTC.

    Summary
    Keep open: current main and v2026.6.11 still have a source-level path where Copilot Claude model metadata can collapse /thinking to off-only, and the related live-catalog work does not fully cover this narrower dynamic/live Claude metadata case.

    Reproducibility: yes. at source level, but not with a fresh live account: current code can produce a reasoning: false Copilot Claude row, and the shared thinking resolver turns that into off-only validation. Live Copilot proof is still missing for the exact upstream claude-sonnet-4.6 metadata payload.

    Next step
    The remaining bug is narrow and source-reproducible, but live Copilot metadata proof would improve confidence before landing.

    Review details

    Best possible solution:

    Fix the GitHub Copilot provider metadata path so dynamic or live Copilot Claude rows expose supported thinking levels while preserving core off-only validation for truly non-reasoning catalog rows.

    Do we have a high-confidence way to reproduce the issue?

    Yes at source level, but not with a fresh live account: current code can produce a reasoning: false Copilot Claude row, and the shared thinking resolver turns that into off-only validation. Live Copilot proof is still missing for the exact upstream claude-sonnet-4.6 metadata payload.

    Is this the best way to solve the issue?

    Yes, the likely best fix is provider-owned metadata correction in the GitHub Copilot model path rather than a generic core bypass. The core reasoning: false guard should remain intact for models that truly do not support thinking.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • No live Copilot account proof was available in this read-only review, so the exact current upstream /models payload for claude-sonnet-4.6 still needs redacted live confirmation before landing a behavior fix.
    • A fix must preserve the generic off-only behavior for providers or models that explicitly and correctly declare reasoning: false.

    Codex review notes: model internal, reasoning high; reviewed against 1a508d7915ef.

    Label changes

    Label justifications:

    • P2: The issue affects a bounded provider/model capability path and leaves the model usable with thinking off, so it is normal priority rather than urgent.
    • impact:auth-provider: The failure comes from provider/model metadata and causes OpenClaw to reject a thinking level for a GitHub Copilot model choice.
    Evidence reviewed

    Acceptance criteria:

    • node scripts/run-vitest.mjs extensions/github-copilot/models.test.ts extensions/github-copilot/provider-policy-api.test.ts src/auto-reply/thinking.test.ts --maxWorkers=1
    • node scripts/run-vitest.mjs src/gateway/server.sessions.thinking-e2e.test.ts --maxWorkers=1
    • If live Copilot credentials are available, verify /thinking high on github-copilot/claude-sonnet-4.6 with redacted output.

    What I checked:

    Likely related people:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  4. added
    P2
    impact:auth-provider
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    on Jul 2, 2026
  5. added 2 commits that reference this issue on Jul 4, 2026
    0419704
    41296b3
  6. added a commit that references this issue on Jul 6, 2026
    7aa3585
  7. openclaw-barnacle commented on Jul 17, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  8. added
    stale
    on Jul 17, 2026
  9. openclaw-barnacle commented on Jul 25, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

  10. locked as resolved and limited conversation to collaborators on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugbug:behaviorclawsweeper:needs-live-reproimpact:auth-providerissue-rating: 🐚 platinum hermitstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions