Repository navigation
fix(openrouter): keep DeepSeek V4 reasoning effort valid - #77423
Conversation
|
Codex review: passed. Summary Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises Next step before merge Security Review detailsBest possible solution: Let a fresh exact-head ClawSweeper review supersede the stale Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises Is this the best way to solve the issue? Yes. The PR keeps the fix provider-local, preserves direct DeepSeek V4 What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against a71f90683766. |
|
@clawsweeper rebase Scope: resolve the CHANGELOG.md conflict on #77423 only. Leave the provider, docs, and tests unchanged unless the rebase itself requires a tiny adjustment; report unrelated findings separately. |
|
🦞🔧 Command: I will keep the change narrow and update the PR branch if the repair worker finds a safe fix. |
|
@clawsweeper stop Taking the changelog conflict rebase locally now. |
|
🦞✅ I added |
d6a3f01 to
ecfa9d2
Compare
|
@clawsweeper automerge |
|
🦞✅ Source: What merged:
Automerge notes:
The automerge loop is complete. Automerge progress:
|
ecfa9d2 to
becdea4
Compare
|
@clawsweeper explain why automerge is blocked. plugin-sdk:api:check and Critical Quality (plugin-sdk-package-contract) are green on the current head, but automerge still appears stuck on the Plugin SDK API baseline finding. |
|
🦞👀 I asked ClawSweeper to answer this maintainer mention in the next review comment. Tiny claws, bounded scope: this is a read-only assist pass unless it produces one of the existing structured safe-action markers. Request: explain why automerge is blocked. plugin-sdk:api:check and Critical Quality (plugin-sdk-package-contract) are green on the current head, but automerge still appears stuck on the Plugin SDK API baseline finding. |
) Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4 Review: openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4223be0cbb6806d92d11ca4307d19bfc3f. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4223be0cbb6806d92d11ca4307d19bfc3f Review: openclaw/openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4223be0cbb6806d92d11ca4307d19bfc3f. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4223be0cbb6806d92d11ca4307d19bfc3f Review: openclaw/openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
) Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4 Review: openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
) Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4 Review: openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
) Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4 Review: openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4223be0cbb6806d92d11ca4307d19bfc3f. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4223be0cbb6806d92d11ca4307d19bfc3f Review: openclaw/openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary: - The PR removes `max` from OpenRouter DeepSeek V4 thinking profiles, maps stale OpenRouter `max` overrides to `xhigh`, preserves direct DeepSeek behavior, and updates docs, tests, and changelog. - Reproducibility: yes. Source inspection on current main shows OpenRouter DeepSeek V4 advertises `max` and se ... ffort: "max"`, matching the linked 400 logs; I did not need a live OpenRouter request for this assist pass. Automerge notes: - Ran the ClawSweeper repair loop before final review. - Addressed earlier ClawSweeper review findings before merge. - Included post-review commit in the final squash: docs(changelog): credit OpenRouter duplicate fix - Included post-review commit in the final squash: fix(openrouter): keep DeepSeek V4 reasoning effort valid Validation: - ClawSweeper review passed for head becdea4223be0cbb6806d92d11ca4307d19bfc3f. - Required merge gates passed before the squash merge. Prepared head SHA: becdea4223be0cbb6806d92d11ca4307d19bfc3f Review: openclaw/openclaw#77423 (comment) Co-authored-by: sallyom <[email protected]> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary
maxfrom OpenRouter DeepSeek V4 thinking profiles so menus and config validation advertise only OpenRouter-supported valuesmaxthinking overrides toreasoning_effort: "xhigh"instead of sending OpenRouter-invalidmaxxhigh|maxstill maps to native DeepSeekreasoning_effort: "max"Fixes #77350.
Verification
pnpm test extensions/openrouter/index.test.ts src/plugin-sdk/provider-stream.test.ts src/plugin-sdk/provider-stream-shared.test.ts extensions/deepseek/index.test.tspnpm exec oxfmt --check --threads=1 CHANGELOG.md docs/providers/openrouter.md docs/tools/thinking.md extensions/openrouter/index.test.ts extensions/openrouter/stream.ts extensions/openrouter/thinking-policy.ts src/plugin-sdk/provider-stream-shared.tspnpm exec oxlint extensions/openrouter/index.test.ts extensions/openrouter/stream.ts extensions/openrouter/thinking-policy.ts src/plugin-sdk/provider-stream-shared.tspnpm lint:extensionspnpm lint:extensionsreproduced and then verified the lint fix pathreasoning_effort400