Skip to content

Reasoning effort can't be restored after selecting "off" on Claude Opus 4.7 (gateway rejects every non-off level with "use off") #980

Closed

Description

@karkarl

Summary

On github-copilot/claude-opus-4.7, once a session's reasoning effort (thinkingLevel) is set to off, there is no way to switch it back to any reasoning level. Every non-off value the UI sends (medium, max, …) is rejected by the gateway with ... is not supported for github-copilot/claude-opus-4.7 (use off). The model appeared to reason before off was selected, so this reads as a one-way trap.

This is independent of the WinUI chat-composer redesign — it reproduces on the latest tip of main and is a gateway/model-metadata + session-state issue, not a composer-layout issue. Filing separately so it isn't bundled into the composer PR.

Environment

  • App: OpenClaw Tray (WinUI 3), latest main
  • Gateway: setup-managed local WSL gateway, server version 2026.6.11
  • Model: github-copilot/claude-opus-4.7 (provider github-copilot, api anthropic-messages)

Steps to reproduce

  1. Configure a session on github-copilot/claude-opus-4.7.
  2. Open the reasoning-effort picker and select off (e.g. while exploring the UI).
  3. Try to switch the reasoning effort back to medium (or any other level).

Expected

The user can restore the model's previous/default reasoning behavior (either a working reasoning level, or a clearly-labeled "default"/"on" state).

Actual

The switch silently fails; the session stays on off. The gateway rejects the patch:

sessions.patch failed: thinkingLevel "medium" is not supported for github-copilot/claude-opus-4.7 (use off)
sessions.patch failed: thinkingLevel "max"    is not supported for github-copilot/claude-opus-4.7 (use off)

There is no exposed path back to the model's default reasoning state — the only gateway-accepted explicit value is off.

Evidence: contradictory model metadata

models.list reports this model as non-reasoning yet simultaneously advertises a full effort list:

{
  "id": "claude-opus-4.7",
  "name": "Claude Opus 4.7",
  "provider": "github-copilot",
  "api": "anthropic-messages",
  "contextWindow": 128000,
  "reasoning": false,
  "compat": { "supportedReasoningEfforts": ["low","medium","high","xhigh","max"] },
  "available": true
}

So reasoning: false and compat.supportedReasoningEfforts: [low,medium,high,xhigh,max] disagree, and the sessions.patch validator only accepts off. A UI cannot trust the advertised effort list to decide what is selectable.

Analysis / open questions

Two candidate root causes (need gateway-side confirmation):

  1. One-way "off" trap. The model's default (unset thinkingLevel) may be a working reasoning state, and setting an explicit off leaves no way to return to that default — there's no default/unset/on value the UI can send, and off is the only accepted explicit value. If so, the gateway and/or UI needs a way to clear/restore the default reasoning state.
  2. Stale/incorrect reasoning metadata for Copilot-hosted Anthropic models — if Opus 4.7 truly supports reasoning through Copilot, reasoning: false (and the patch validator's use off) is wrong and should be corrected so real efforts are accepted.

Impact

  • Users can permanently (per session) lose reasoning on a model after a single stray toggle, with no visible recovery path.
  • The contradictory reasoning vs supportedReasoningEfforts metadata makes it impossible for the client to present an accurate, gate-correct reasoning picker.

Notes for the client-side follow-up

  • A partial client-side mitigation was prototyped (gate the reasoning picker on the reasoning flag and disable unsupported efforts instead of letting them silently fail). That improves honesty but does not solve the core problem — restoring reasoning after off — because the gateway still accepts only off for this model. The real fix depends on resolving the open questions above (a "default/restore" path and/or correct metadata).

Activity

  1. added
    P2
    impact:session-state
    impact:auth-provider
    impact:ux-friction
    issue-rating: 🦀 challenger crab
    clawsweeper:current-main-repro
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Jul 13, 2026
  2. clawsweeper commented on Jul 13, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 28, 2026, 2:28 AM ET / 06:28 UTC.

    Summary
    Keep open. Current main still offers only concrete reasoning levels and routes every selection to a value-setting session patch, while the supported protocol can clear an override with JSON null. The recovery behavior and upstream GitHub Copilot model metadata need the active owner’s scope decision.

    Reproducibility: yes. for the missing Tray recovery route: current main exposes only concrete values and always sends a concrete patch. The reported upstream Gateway rejection and model-default restoration still need a live supported-Gateway check.

    Root-cause cluster
    Relationship: canonical
    Canonical: #980
    Summary: This issue remains the canonical Windows-client report; the related Default-reset pull request was closed unmerged and only partially addressed the upstream dependency.

    Members:

    • partial_overlap: Add Default reasoning reset to chat #1077 - It proposed the missing client-side Default clear behavior, but it closed unmerged and did not settle the separate Gateway model-metadata question.

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Maintainer decision needed

    Question Recommendation
    Should the Tray land the protocol-backed Default recovery action now while upstream model metadata is confirmed separately, or wait for the Gateway contract to be clarified first? Land a guarded Default recovery action: Expose Default as an explicit null clear, retain the prior state on rejection, and keep the provider-metadata correction as separate upstream work.

    Why: Current main proves the client has no clear route, but only a real supported Gateway can establish whether clearing restores the intended provider behavior for this model.

    Next step
    The source-proven client gap is small, but the active maintainer ownership and unresolved upstream model contract require a scope decision before starting another repair branch.

    Review details

    Best possible solution:

    Add a distinct Default reasoning action that sends thinkingLevel: null, reconciles the resulting canonical session state, and validate it against the supported Gateway and the GitHub Copilot model metadata path.

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

    Yes for the missing Tray recovery route: current main exposes only concrete values and always sends a concrete patch. The reported upstream Gateway rejection and model-default restoration still need a live supported-Gateway check.

    Is this the best way to solve the issue?

    Unclear. The existing explicit-null protocol contract is the narrow local recovery path, but a real Gateway result is needed before claiming it restores reasoning for this provider/model combination.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A local clear action can restore the Gateway default override state, but current evidence cannot establish whether the GitHub Copilot model’s upstream metadata and default reasoning behavior are now correct.
    • The client should preserve the prior displayed state and report a Gateway rejection rather than silently switching the picker after a failed clear.

    Codex review notes: model internal, reasoning high; reviewed against 1955282412bd.

    Label changes

    Label justifications:

    • P2: A session-specific setting becomes unrecoverable through the Tray, with a bounded user impact.
    • impact:session-state: The affected value is the session’s persisted thinking-level override.
    • impact:auth-provider: Gateway provider/model capability validation determines whether the selected reasoning value is accepted.
    • impact:ux-friction: The Tray offers no visible recovery action after users select the explicit off value.
    Evidence reviewed

    What I checked:

    Likely related people:

    • karkarl: Current main attributes the reasoning picker’s extracted view boundary to this contributor’s merged composer work. (role: recent chat-composer contributor; confidence: high; commits: 686afdc8d4a2; files: src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs)
    • calebeden: Most recent main history touching the chat provider and bridge area is the native-chat media change, making this a useful adjacent routing contact. (role: recent adjacent chat contributor; confidence: medium; commits: a76c85218c7d; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs, src/OpenClaw.Tray.WinUI/Chat/IChatGatewayBridge.cs)
    • shanselman: The issue timeline records this person applying the actively-landing status immediately before this review. (role: active landing owner; confidence: high)
    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.
  3. moved this from Backlog to UX in Windows Companion Appon Jul 13, 2026
  4. calebeden commented on Jul 14, 2026

    @calebeden
    Contributor

    This seems like it might be an issue with the gateway, not necessarily the Windows Companion App. In the web UI, I am able to set the "reasoning level" to high and then query with /status and see that it is preserved as "Think: high Reasoning: on" even though the UI refreshes to show "Off" in the input area. So the same bug appears to be showing up there.

    Image
  5. 21 remaining items

  6. added
    clawsweeper:fix-shape-clear
    and removed
    clawsweeper:queueable-fix
    clawsweeper:fix-shape-clear
    no-stale
    on Aug 2, 2026
  7. github-actions commented on Aug 23, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  8. added
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    on Aug 23, 2026
  9. added
    status: 🚢 actively landing
    on Aug 28, 2026
  10. removed
    status: 🚢 actively landing
    on Aug 28, 2026
  11. locked as resolved and limited conversation to collaborators on Aug 31, 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

    P2clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:auth-providerimpact:session-stateimpact:ux-frictionissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    Medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions