Skip to content

fix(copaw): honor model-switch --no-reasoning via enable_thinking=false - #1127

Open
XbaoWu wants to merge 1 commit into
agentscope-ai:mainfrom
XbaoWu:fix/copaw-model-switch-no-reasoning
Open

fix(copaw): honor model-switch --no-reasoning via enable_thinking=false#1127
XbaoWu wants to merge 1 commit into
agentscope-ai:mainfrom
XbaoWu:fix/copaw-model-switch-no-reasoning

Conversation

@XbaoWu

@XbaoWu XbaoWu commented Aug 2, 2026

Copy link
Copy Markdown

Fixes #1126

Summary

  • CoPaw Manager model-switch ignored --no-reasoning (only logged reasoning=false) while OpenClaw already persisted reasoning: false.
  • Persist model-level generate_kwargs.extra_body.enable_thinking=false on the modern CoPaw provider store (providers/custom/agentteams-gateway.json + active_model.json).
  • Sync openclaw.json reasoning / primary as bridge SoT so CoPaw restart / re-bridge does not wipe the setting from an empty local write.
  • Bridge maps openclaw.json reasoning: false → model-level CoPaw generate_kwargs only (no shared provider-level flag).

Test plan

  • jq / script path: --no-reasoning writes model-level enable_thinking=false; omit flag clears it
  • Local Docker CoPaw Manager (docker cp this script): update-manager-model.sh <model> --no-reasoning → provider has enable_thinking=false, openclaw.json has reasoning=false (checked immediately after write)
  • Clear path (no --no-reasoning) restores both sides
  • Bridge unit tests added for reasoning: false → model-level generate_kwargs (and sibling does not force provider-level)
  • Restart CoPaw / Manager and confirm chat TTFT drops (no long thinking)

Notes

  • Modern CoPaw provider layout only.
  • MinIO Remote→Local overwriting a local openclaw.json write is a separate persistence issue and is not fixed in this PR.

CoPaw ignored --no-reasoning while OpenClaw set reasoning=false. Persist
model-level generate_kwargs on the modern provider store, sync
openclaw.json as bridge SoT, and map reasoning:false in the CoPaw bridge.
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CoPaw: model-switch --no-reasoning is a no-op (unlike OpenClaw)

1 participant