Repository navigation
Description
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(providergithub-copilot, apianthropic-messages)
Steps to reproduce
- Configure a session on
github-copilot/claude-opus-4.7. - Open the reasoning-effort picker and select off (e.g. while exploring the UI).
- 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):
- One-way "off" trap. The model's default (unset thinkingLevel) may be a working reasoning state, and setting an explicit
offleaves no way to return to that default — there's nodefault/unset/onvalue the UI can send, andoffis the only accepted explicit value. If so, the gateway and/or UI needs a way to clear/restore the default reasoning state. - Stale/incorrect
reasoningmetadata for Copilot-hosted Anthropic models — if Opus 4.7 truly supports reasoning through Copilot,reasoning: false(and the patch validator'suse 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
reasoningvssupportedReasoningEffortsmetadata 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
reasoningflag and disable unsupported efforts instead of letting them silently fail). That improves honesty but does not solve the core problem — restoring reasoning afteroff— because the gateway still accepts onlyofffor this model. The real fix depends on resolving the open questions above (a "default/restore" path and/or correct metadata).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jul 13, 2026
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:
canonicalCanonical: #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
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:
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:
src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs:45, 1955282412bd)src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs:608, 1955282412bd)src/OpenClaw.Shared/GatewayProtocolModels.cs:263, 1955282412bd)tests/OpenClaw.Tray.Tests/OpenClawChatDataProviderTests.cs:9664, 1955282412bd)src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs:45, 686afdc8d4a2)Likely related people:
src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs)src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs,src/OpenClaw.Tray.WinUI/Chat/IChatGatewayBridge.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.calebeden commentedon Jul 14, 2026
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
/statusand 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.21 remaining items
github-actions commentedon Aug 23, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.