Repository navigation
fix(opencode-go): enable xhigh/max thinking levels for DeepSeek V4 - #99618
34262315716 wants to merge 1 commit into
Conversation
Add thinkingLevelMap to DeepSeek V4 model catalog entries so getSupportedThinkingLevels() allows xhigh and max selections. Replace hardcoded createDeepSeekV4OpenAICompatibleThinkingWrapper with inline streamWithPayloadPatch that reads thinkingLevelMap from the model definition at runtime. Closes the gap where DeepSeek V4 supports max reasoning_effort but neither the catalog nor the wrapper exposed it.
|
Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 2:33 PM ET / 18:33 UTC. Summary PR surface: Source +74. Total +74 across 2 files. Reproducibility: yes. Source inspection shows current main lacks opencode-go DeepSeek V4 thinking metadata, and 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 findings
Review detailsBest possible solution: Expose Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main lacks opencode-go DeepSeek V4 thinking metadata, and Is this the best way to solve the issue? No. The PR exposes the missing levels, but it is not the best fix because it changes Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against df1452799b28. Label changesLabel justifications:
Evidence reviewedPR surface: Source +74. Total +74 across 2 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
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(opencode-go): enable xhigh/max thinking levels for DeepSeek V4 This is item 1/1 in the current shard. Shard 8/10. 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. |
|
Closing due to inactivity. |
Summary
Fixes: #99617
Problem
OpenClaw 的 thinking level 选择器对 opencode-go 的 DeepSeek V4 模型只能显示
minimum~high,xhigh/max选项因为缺失thinkingLevelMap被getSupportedThinkingLevels()过滤掉。同时 stream wrapper 硬编码了 reasoning_effort 映射,不读取模型配置。Changes
extensions/opencode-go/provider-catalog.tsdeepseek-v4-pro和deepseek-v4-flash新增thinkingLevelMap字段minimal/low/medium → "high",high/xhigh/max → "max"ProviderRuntimeModelWithThinkingLevelMap类型确保类型安全extensions/opencode-go/stream.tsstreamWithPayloadPatch逻辑替换createDeepSeekV4OpenAICompatibleThinkingWrappermodel.thinkingLevelMap;无 map 时回退到硬编码映射Verification
npx tsc -p extensions/opencode-go/tsconfig.json --noEmit)thinkingLevelMap时行为与旧代码完全一致