fix(github-copilot): claude-opus-4.8 is native 1M context + thinking (not 128K)#91870
fix(github-copilot): claude-opus-4.8 is native 1M context + thinking (not 128K)#91870wyhgoodjob wants to merge 3 commits into
Conversation
|
Codex review: needs changes before merge. Reviewed June 15, 2026, 1:23 PM ET / 17:23 UTC. Summary PR surface: Source +13, Tests +16. Total +29 across 3 files. Reproducibility: yes. at source level: current main and v2026.6.6 still carry the 128k/8192/no-reasoning fallback row, and the PR body provides live Copilot Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Security Review findings
Review detailsBest possible solution: Land the static fallback correction together with the small Copilot thinking-profile update for adaptive/xhigh/max, while keeping the broader live-vs-static catalog precedence in #91728. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main and v2026.6.6 still carry the 128k/8192/no-reasoning fallback row, and the PR body provides live Copilot Is this the best way to solve the issue? No, not as submitted. The static metadata surface is the right immediate boundary, but the provider thinking profile must expose adaptive so the claimed capability is selectable. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8ded75628437. Label changesLabel justifications:
Evidence reviewedPR surface: Source +13, Tests +16. Total +29 across 3 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Thanks @wyhgoodjob for the targeted Copilot metadata fix. I am closing this as superseded by #91728 because both PRs address the same Canonical path: #91728 I am keeping the canonical thread open there so validation and maintainer review stay in one place. Clownfish will preserve this source PR as attribution for the concrete 4.8 symptom report and targeted patch. If this still has a distinct reproduction path or remains broken after #91728 lands, please reply and we can reopen or split it back out. |
What
Fix
github-copilot/claude-opus-4.8metadata so it reflects its real capabilities: native 1M context window + adaptive thinking (reasoning effortslow/medium/high/xhigh/max).model-metadata.ts: add aSTATIC_MODEL_OVERRIDESentry forclaude-opus-4.8(1M ctx,maxTokens64k,reasoning: true,thinkingLevelMap,supportedReasoningEfforts), mirroring the existingclaude-opus-4.7-1m-internalshape.openclaw.plugin.json: bump the bundled manifest row forclaude-opus-4.8fromcontextWindow: 128000/maxTokens: 8192to1000000/64000and addreasoning: true. This manifest value is what seeds the session context budget, so it must be correct independently of the defaults helper.models.test.ts: add an assertion thatbuildCopilotModelDefinition("claude-opus-4.8")resolves to the 1M + thinking definition.Fixes #91869.
Why
PR #88547 added
claude-opus-4.8by mirroring the 4.7 row, which carried overcontextWindow: 128000and no reasoning support. But Opus 4.8 is natively 1M on the Anthropic API / Bedrock / Vertex — no-1msuffix, no beta header, no long-context premium (per Anthropic's 4.8 release notes). The hard-coded 128K silently caps entitled users and disables thinking.Real behavior proof
Behavior addressed: On an account entitled to
claude-opus-4.8via GitHub Copilot,openclaw models listshowed 128k and the session context budget (/status→Context: x/128k) capped at 128k with no thinking.Real environment tested: OpenClaw 2026.6.1 (2e08f0f), Debian, provider
github-copilotauthenticated against a real Copilot subscription (liveapi.githubcopilot.com).Upstream
/modelsresponse for the affected account (abridged), proving the capability is real:(For contrast the same response returns
claude-opus-4.7= 1,000,000, whileclaude-opus-4.7-high/-xhigh= 200,000, confirming the 4.8 row was simply wrong rather than an intentional cap.)After applying the equivalent change locally (manifest ctx → 1,000,000 + override), a real session shows
Context: 148k/1.0mand athinking=highturn ongithub-copilot/claude-opus-4.8runs successfully (verified end-to-end).Tests
node scripts/run-vitest.mjs extensions/github-copilot/models.test.ts(Adds one assertion; existing 4.7-1m-internal / gpt-5.5 override assertions remain.)
Notes
/modelsover static manifest" work is tracked separately in GitHub Copilot: static default model list shadows live entitlement discovery #88548; this PR is the immediate, low-risk correctness bump for an already-shipping model.