Files
openclaw/docs/tools
8d8736dd0a fix(acp): preserve configured thinking across session reuse (#128169)
* fix(acp): forward owner agent thinking default to configured ACP bindings

Configured channel-to-ACP bindings only forwarded the owner agent's
model into the ACP session's runtime options, so the agent's
thinkingDefault (e.g. "off") never reached the ACP session. The
underlying backend then applied its own default thinking level, which
some models reject outright (e.g. ollama-cloud/glm-5.2:cloud rejects
"adaptive"), breaking configured/swarm ACP runs with no workaround.

Resolve the owner agent's effective thinking default (per-agent
thinkingDefault, falling back to agents.defaults.thinkingDefault, per
docs/tools/thinking.md) alongside its model, persist it on the
binding spec/record, and forward it through session init and the
existing live model-drift patch path.

* fix(acp): honor per-model thinking policy and reconcile removed defaults

Reuses the canonical resolveConfiguredThinkingDefaultCore helper so a
configured ACP binding's thinking default respects
agents.defaults.models[key].params.thinking ahead of the global
default, matching normal reply resolution. Also reconciles the
explicit-to-unset transition: removing an agent/global thinking
default now clears a previously pinned value on a live session
instead of leaving it stuck.

* fix(acp): preserve configured thinking across session reuse

Consolidate configured model/thinking reconciliation without clearing backend state or replacing conversations. Honor target-agent thinking defaults during ACP spawn and document precedence and omission.

Co-authored-by: chelsealong <chelsealong@126.com>

Co-authored-by: ayeshafayyaz-pixel <244500061+ayeshafayyaz-pixel@users.noreply.github.com>

* fix(acp): reject unsupported live effort before persisting

Apply configured live controls through the existing checked manager path.
Keep accepted settings and conversation state when a control is rejected,
and distinguish Codex startup omission from unsupported live effort clearing.

Co-authored-by: chelsealong <chelsealong@126.com>
Co-authored-by: ayeshafayyaz-pixel <244500061+ayeshafayyaz-pixel@users.noreply.github.com>

* test(acp): isolate configured binding regression coverage

Keep the real manager/lifecycle regression in a focused test file and narrow
the adapter case union explicitly. Runtime behavior is unchanged.

Co-authored-by: chelsealong <chelsealong@126.com>
Co-authored-by: ayeshafayyaz-pixel <244500061+ayeshafayyaz-pixel@users.noreply.github.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: ayeshafayyaz-pixel <244500061+ayeshafayyaz-pixel@users.noreply.github.com>
2026-08-27 18:32:26 -07:00
..
…
…