Repository navigation
fix(opencode-go): expose DeepSeek V4 max thinking levels - #99643
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 16, 2026, 2:09 AM ET / 06:09 UTC. Summary PR surface: Source +74, Tests +157. Total +231 across 7 files. Reproducibility: yes. from source, though not by a fresh local run: current main lacks the profile/map needed for xhigh and max validation, and the earlier transport proof separately demonstrated the clamping and payload behavior. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land one canonical provider-owned implementation after confirming on the current head that cold control-plane selection exposes all levels and that off, low, medium, high, xhigh, and max produce the intended OpenCode Go request payloads; then resolve the paired issues and retire the weaker overlapping PRs. Do we have a high-confidence way to reproduce the issue? Yes from source, though not by a fresh local run: current main lacks the profile/map needed for xhigh and max validation, and the earlier transport proof separately demonstrated the clamping and payload behavior. Is this the best way to solve the issue? Yes. A narrow provider-owned policy artifact shared with runtime registration is more maintainable than core tables or eager plugin activation, and this branch also preserves the existing shared stream wrapper rather than duplicating transport logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5f2828b50ada. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +74, Tests +157. Total +231 across 7 files. View PR surface stats
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
Review history (2 earlier review cycles)
|
4b13e5e to
bc3a64e
Compare
Preserve existing lower-level high effort while making xhigh/max available before runtime activation. Co-authored-by: 杨浩宇0668001029 <[email protected]>
bc3a64e to
34391f7
Compare
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(opencode-go): expose DeepSeek V4 max thinking levels This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Merged via squash.
|
Preserve existing lower-level high effort while making xhigh/max available before runtime activation. Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes #99601.
OpenCode Go's
deepseek-v4-proanddeepseek-v4-flashaccept provider effortmax, but their OpenClaw catalog rows did not advertisexhighormax./think maxwas therefore clamped tohighbefore the request reached the provider. The plugin also activates on demand, so cold/thinkand Gateway projection paths need the same provider-owned profile before runtime registration.Why This Change Was Made
minimal,low,medium, andhighcontinue to send provider efforthigh; onlyxhighandmaxsend provider effortmax.offon the existing DeepSeek-specific disabled-thinking payload path.This is intentionally narrower than changing lower-level quality, latency, or cost behavior.
User Impact
OpenCode Go DeepSeek V4 users can select
xhighandmaxwithout silent downgrade. Cold Gateway/model-control projections expose the complete OpenClaw level set before the runtime plugin activates. Other OpenCode Go models are unchanged.Evidence
Exact head:
34391f75de7934e9600531d4a02f303f09aa93f8node scripts/run-vitest.mjs extensions/opencode-go/index.test.ts src/plugins/provider-public-artifacts.test.ts— 35 tests passed.opencode-go/deepseek-v4-proreturnedthinkingDefault: maxand levelsoff, minimal, low, medium, high, xhigh, maxbefore runtime registration.deepseek-v4-flashrequests returned HTTP 200 with reasoning output for provider effortshigh,max,low, andmedium. The branch deliberately retains lower OpenClaw levels at providerhighto avoid a separate compatibility change.Compatibility / Decision
This adds provider capability and pre-activation policy surface, so it requires maintainer product/provider acceptance before merge. No config key, dependency, protocol, credential handling, or generic thinking policy changes.
Co-authored-by: 杨浩宇0668001029 [email protected]