Repository navigation
Conversation
|
Thanks for the context here. I did a careful shell check against current Close this 83-day-old draft PR: current So I’m closing this older PR as already covered on Review detailsBest possible solution: Keep the current provider-owned catalog and public policy implementation, which exposes the levels before runtime activation and preserves the intended DeepSeek effort mapping. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current provider tests assert that both OpenCode Go DeepSeek V4 models retain Is this the best way to solve the issue? Yes: the current catalog plus public provider-policy artifact is better than this branch’s runtime-only hook because it also covers capability resolution before the plugin runtime activates. Security review: Security review cleared: The PR changes provider capability declarations only and introduces no concrete security or supply-chain concern. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 71a59512ba47; fix evidence: commit b5f1bdb88600, main fix timestamp 2026-08-01T01:56:44-07:00. |
There was a problem hiding this comment.
Pull request overview
Adds missing supportedReasoningEfforts compat metadata for the opencode-go provider’s DeepSeek V4 model entries so OpenClaw can validate and surface higher thinking/reasoning levels (notably xhigh/max) instead of rejecting them.
Changes:
- Add
supportedReasoningEffortstodeepseek-v4-procompat metadata. - Add
supportedReasoningEffortstodeepseek-v4-flashcompat metadata.
| "medium", | ||
| "high", | ||
| "xhigh", | ||
| "max", | ||
| ], |
| supportedReasoningEfforts: [ | ||
| "off", | ||
| "minimal", | ||
| "low", | ||
| "medium", | ||
| "high", | ||
| "xhigh", | ||
| "max", | ||
| ], |
…dels via provider hooks DeepSeek V4 Flash and V4 Pro natively support reasoning_effort: "max", and OpenClaw's stream layer already maps xhigh/max to "max" on the wire. However, the opencode-go provider did not expose these levels through the thinking validation layer, causing "/think xhigh" and "/think max" to be rejected. Follow the same pattern used by the OpenRouter extension: add supportsXHighThinking and resolveThinkingProfile hooks to the opencode-go provider registration, declaring a thinking profile that includes xhigh and max for the deepseek-v4-flash and deepseek-v4-pro models.
05c9241 to
a13a6ee
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Thank you for working on this! The same fix has already landed in #99643 (a97d97f), with broader coverage: both DeepSeek V4 Flash and Pro expose the complete thinking profile before plugin activation, preserve xhigh/max in manifest and runtime catalogs, and translate both levels into the supported max reasoning effort on the provider wire. Ten focused current-main tests covering those paths pass. The supported models and effort contract are also documented at https://opencode.ai/docs/go/ and https://api-docs.deepseek.com/guides/thinking_mode/. Closing this draft as fully superseded; thanks again for the contribution. |
Problem
DeepSeek V4 Flash and V4 Pro natively support reasoning_effort: "max" at the API level. OpenClaw's stream layer already maps xhigh/max to "max" on the wire via resolveDeepSeekV4ReasoningEffort(). However, the opencode-go provider did not expose these levels through the thinking validation layer, causing /think xhigh and /think max to be rejected.
Solution
Follow the same pattern used by the OpenRouter extension: add supportsXHighThinking and resolveThinkingProfile hooks to the opencode-go provider registration, declaring a thinking profile that includes xhigh and max for DeepSeek V4 models.
Changes
Real behavior proof
behavior
Thinking level "max" was previously rejected for opencode-go/deepseek-v4-flash with the error "Thinking level "max" is not supported". After the fix, setting thinkingDefault: "max" is accepted and the session activates with Think: max without errors.
environment
steps
evidence
Session status output:
Config:
observedResult
Think: max is accepted and active. The session applies thinking level "max" and the stream wrapper sends reasoning_effort: "max" on the wire for all API requests.
notTested
Stream-level reasoning_effort payload was verified via code inspection of resolveDeepSeekV4ReasoningEffort() which maps both xhigh and max to the string "max". Actual wire capture was not performed.
Related: #76482