Skip to content

fix: preserve ACP model switches and reply completion - #132040

Merged
steipete merged 11 commits into
mainfrom
codex/acp-accepted-config-feedback
Aug 28, 2026
Merged

steipete merged 11 commits into
mainfrom
codex/acp-accepted-config-feedback

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Persistent ACP conversations could retain an obsolete thinking selection after switching models. OpenClaw discarded the backend's accepted config snapshot, so later turns or reconnects could replay a value that had been adjusted or removed. /acp feedback also omitted the effective thinking selection.

Live testing exposed a second defect before any model switch: lifecycle completion and reply dispatch both finalized the same ACP turn, producing blank/duplicate chat finals and duplicate transcript pairs. The fix consolidates completion ownership instead of hiding duplicate events at the client.

Follow-up to #128169 and #128145. The shared ACPX repair landed in openclaw/acpx#519 and is published as ACPX 0.13.2.

Why This Change Was Made

The ACPX plugin remains a thin adapter. One generic manager helper reconciles only an already-selected thinking value against the accepted backend snapshot, preserves qualified model references, and never pins untouched backend defaults. Automatic replay preserves a still-selectable pending thinking request. Each accepted update is persisted before a subsequent control can fail, and configured bindings carry the returned model state into their thinking update. Existing void-returning third-party runtimes keep their shipped contract.

For completion, ACP offers its settled outcome and successful transcript receipt through the existing runtime-start callback. The Gateway must explicitly acknowledge ownership synchronously; ordinary observers, legacy return values, and asynchronous results cannot claim it. All forwarding wrappers preserve the full callback tuple and return value, and the redundant follow-up wrapper is deleted. Runtime lifecycle events still serve agent.wait and session observers, while Gateway reply dispatch emits the single chat terminal after delivery hooks settle.

The existing successful-write receipt identifies the canonical assistant row for media replacement. The shared user recorder prevents a second user row. The starting transcript session ID is captured before runtime work, and replacement targets are rejected visibly through the existing persistence guard. No database schema, serialized field, migration, config option, environment variable, protocol version, or default is added.

CI follow-through removes an inherited UI startup-size violation: native-only titlebar registration uses the existing lazy-element owner, and the obsolete update banner and its tests/CSS are deleted. A real failed-download test then exposed render-owned Retry doing nothing without a pending user action. The existing recovery flow now requires action persistence only when there is an action to replay. Native descriptors and browser tests are consolidated into existing modules; no size limit, assertion, or timeout is relaxed. The current update card is unchanged.

User Impact

Accepted thinking adjustments/removal survive later turns and Gateway restart. /acp reports effective selections. Successful ACP turns produce one terminal reply and one user/assistant transcript pair, including after a model switch. Post-hook text, suppression, media, runtime failure, cancellation, timeout, and persistence failure remain distinct outcomes.

Release-note context: ACP sessions keep selected reasoning aligned with accepted model switches, preserve conversation history, and avoid blank/duplicate completions and transcript rows.

Evidence

Final authenticated proof, before/after screenshots, and real Control UI video.

Verified head: 6c228b2d004751c9c7c0c55469e53a36f2d21a40, based on 86a0b223142eb44d1d701cf2549ed64c429b7b12. Final full build and exact-head CI passed (pull_request, attempt 1, completed success). Authenticated Codex and Claude Gateway runs passed their executed checks, and the real Control UI passed its two-turn model-switch/reload flow. The explicitly unavailable Codex clamp clause is recorded below, not represented as a pass.

  • Before-fix real Codex and Claude Gateway runs produced duplicate finals and transcript pairs. A later incomplete candidate produced the correct native/ACPX answer but no Gateway terminal because a wrapper dropped the completion callback's third argument. These are failing reproductions, not successful proof.
  • The strengthened Gateway regression now goes through real dispatchInboundMessage. It failed 11 of 15 cases before the forwarding repair and passes all 15 afterward. Acknowledgement/routing regressions independently failed seven cases before repair. Full argument/return forwarding and exact synchronous ownership are covered across sibling wrappers.
  • After the required rebase, 412 focused cases passed: 183 Gateway, 132 ACP/routing, 76 UI units, and 21 channel-delivery cases. Both browser suites passed all 32 cases. The final test-only variable rename was linted and its 15 Gateway cases rerun successfully.
  • Earlier broad owner/sibling proof passed 909 cases across 26 files plus 203 media/dispatch cases. The affected follow-up and dispatcher suites also passed. The complete ACP and UI changed-scope gates passed. The whole-branch guard/type checks and serial full lint/style/cycle checks passed as described below. The final UI graph repair passed the core-boundary guard, all UI test type graphs, focused lint, and eight existing shard tests.
  • Independent Codex autoreview of the full refreshed patch and the final generated/test-only corrections found no actionable P0 findings. Separate source inspection confirmed newer main's managed-media projection preserves this patch's receipt identity, session guard, completion ownership, and cleanup.
  • Real-browser recovery capture shows ordinary-browser no-load, then native failed download → visible Retry → one reload → working titlebar/new-session action. This is browser evidence, not authenticated provider proof.

The live acceptance contract freezes the first terminal, rejects any second correlated terminal, verifies exactly one new user/assistant pair with an unchanged history prefix, replays the same request ID without inference, and checks memory after model switch and full Gateway restart. It does not accept later event overwrites, stale history, or increased deadlines as a pass. Isolated proof never uses the operator's Gateway or state.

Final-head CLI results: three real Codex turns and three real Claude turns, zero tool calls. Codex Sol/low → Terra/medium retained the same outer session, backend conversation, and ACPX record; invalid effort and unsupported live clearing were rejected without changing controls. Claude Sonnet/low → Haiku removed the effort control and cleared stored/desired thinking. Both recalled an unresent fictional phrase after switching and after a full Gateway process restart. Every inference had one first terminal and exactly one added user/assistant pair with the prior history unchanged. Both lanes exited successfully and verified owned-process/state cleanup plus unchanged provenance.

Codex's result is deliberately executed-checks-pass-with-blocked-clause, not an unconditional pass: no advertised Sol/Terra/Luna pair exercises a clamp within OpenClaw's existing effort allowlist. The unsupported ultra value was not added to OpenClaw or used to manufacture a passing witness. ACPX has separate upstream live clamp proof; Claude removal is proven end-to-end here.

The CLI frozen manifest covers 14,407 files across 27 roots, including all built runtime/UI output, published ACPX, both adapters, native Codex, and all proof scripts. Manifest SHA-256: b2a7c0c591be653768e6415f4edea854c65c10385824fde058ebe6a9ed81acc4. File-set SHA-256: 7892b4c813fede3932688184330c0aa1aeb204b923fa2da3596376eddd2c9422. Build ID: 2026.8.1-6c228b2d0047-2026-08-28T23-31-58.737Z. Root independently verified both descriptors before credentialed execution.

The first UI attempt stopped before browser/authentication or inference: the proof script loaded Playwright after isolating HOME, so its browser registry pointed at an empty test cache. The temporary proof code now resolves installed Playwright before isolating HOME and passes that browser type to the recorder. Browser child environment, fresh profile/context, normal dashboard handoff, assertions, and deadlines are unchanged. A credential-free isolated launch passed; the retry used a fresh manifest and the two still-unused UI prompt slots, not a repeated CLI run. No product source or build output changed.

Final UI proof passed in real Chromium: normal dashboard handoff, actual composer submissions, advertised Sonnet/low → Haiku/no-effort, same backend conversation, two matching fictional replies, exactly one terminal and transcript pair per inference, and a real browser reload restoring unchanged history without inference. Final backend counts are two user/two assistant turns with zero tools. Root inspected all three screenshots, representative video frames, and saved receipts. The authentication video was deleted, all owned processes/state were removed, and final provenance remained unchanged. UI manifest SHA-256: 29bcdc48133202a1520b7d4a1045f4967187d95d26e4b12e28527fa4f6cc2e36; it differs from the CLI manifest only in the two recorder files. Eight total real provider prompts were used.

Final repair/build commands (all passed):

node --import ./scripts/tsx.mjs scripts/check-tsgo-core-boundary.mts
node scripts/run-tsgo-core-test-shards.mjs ui
node scripts/run-vitest.mjs test/scripts/tsgo-core-test-shards.test.ts
node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json scripts/lib/tsgo-core-test-shards.mts
node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json test/scripts/tsgo-core-test-shards.test.ts
node --import ./scripts/tsx.mjs scripts/build-all.mts

The final build completed in 2m 5.7s with valid build-cache reuse. UI startup was 344,360 bytes gzip / eight requests, below the unchanged 345,947-byte limit.

Dependency proof was inspected directly, not inferred from wrappers: published ACPX 0.13.2 dist/runtime.js:1631-1655 saves and returns the accepted response in both active and reopened control paths; dist/runtime.d.ts:528 exposes SetSessionConfigOptionResponse. Installed runtime SHA-256 is e9c701679be30172cd623325d976e741deb068f08f4bd43762f963fde334146b, matching the upstream live-tested candidate and published registry integrity. Sibling Codex source at rust-v0.150.1 / 90854393966b21e9ebfd21b122334eb09a20c93d was personally checked at turn_processor.rs:512-529,758, thread_processor.rs:210-266, and catalog_processor.rs:240-258; model/effort forwarding and omission-not-clearing behavior are explicit. The existing native-version override is unchanged. Upstream proof also inspected rust-v0.149.1.

ClawSweeper's exact-head review (6c228b2, 23:40 UTC) reports no introduced source defect. Its low-severity dependency-content concern and both rank-up requests are addressed by direct ACPX source/types and Codex source inspection recorded above, published-package integrity, green exact-head CI, and final-head Gateway/Control UI evidence. The review's serialized-state heuristic does not identify a schema change: the transcript receipt is ephemeral callback state, and persistence continues through existing canonical owners.

Maintainer decision: accept the optional, void-compatible accepted-control result under the requested fix-and-land scope. This is the generic runtime-plugin owner boundary, not ACPX-specific core policy. The completion receipt is ephemeral callback state describing existing canonical writes, not a new persistent data model.

Production LOC: +524/-262 (net +262); tests/support +1189/-146 (net +1043); tooling +7/-2; docs +28/-1; metadata/lock +6/-6; generated boot manifest +2/-2. Pure finalizer/native-component moves are discounted. UI cleanup removes 37 net production lines. Remaining product growth supplies the missing accepted-result and acknowledged completion/receipt contracts. A second raw assistant projector would bypass delivery hooks; suppressing lifecycle entirely would break observers. Duplicate control policy, callback forwarding, and terminal emission have been consolidated.

CI failures were diagnosed, not waived: typed fixtures and a type-only import cycle were repaired; native UI startup size, shell/test line counts, and UI graph roots were reduced by deletion/consolidation. Two lint passes caught shadowed fixture parameters and an inferred callback type; these are corrected without suppression. The required second rebase conflicted only in the generated boot manifest, which was regenerated with the canonical isolated-capture tool.

The final browser CI shard exposed an inherited geometry assumption after #131909 moved queue items into transcript bubbles: click two at the removed row's old coordinates could miss every row. The test now targets the surviving sibling explicitly with native mouse down/up at click count two. Its exact event trace, remaining queue, and reconnect/drain assertions are unchanged; all four queue-edit cases pass. Playwright's implementation was checked directly: click({ clickCount: 2 }) would emit both clicks again, while mouse.down/up forwards the exact count. This is a test-only correction, not a product or timeout change.

Local validation also exposed an orchestration mistake: lint's plugin-declaration preparation overlapped SDK regeneration in the build. The whole-branch check passed all guards and type checks; the completed build passed, and all lint/style checks plus import-cycle checks then passed serially against settled artifacts (zero runtime value cycles). The failed overlapping command is not counted as a green gate.

CI on 085d155 then found a newer-main compiler-graph limit failure: model-setup work added four roots to the combined UI pages/E2E graph, taking it from 720 to 724. The graph is now split at its existing directory boundary, with unique incremental caches and exact-once root coverage. The 720-root ceiling, five CI stripes, runner count, and concurrency stay unchanged. The existing stripe-partition test now also covers the actual five-stripe configuration; no test is excluded.

Provenance limits: the old void-only runtime contract and dual-finalization branch reach this checkout's shallow-history boundary, so the first introducing PR is not established here. The incomplete completion handoff was introduced and repaired within this PR. UI obsolete-banner provenance is #127704 (48a2b45fede5) and #124667; the render-owned retry gap was carried by #130988 (233f1f017202, Peter Steinberger author, GitHub committer). Human automation triggers are not established.

Named Follow-ups

  • Compound model/effort partial-failure feedback can accept the model and then reject effort without returning the first acknowledgement through the thrown result. It fails visibly; this PR does not invent rollback or a new partial-result error contract.
  • Canonicalizing accepted feedback for legacy raw backendExtras effort aliases is separate preference-migration work. Existing optional-rejection behavior is retained.
  • The existing transcript rewrite transaction does not revalidate the current session row inside its write lock. This repair checks the exact receipt target immediately before that owner; transaction-level session validation is not claimed fixed.
  • The existing lazy-load recovery modal has low-contrast secondary text. Functional Retry is fixed; shared modal styling remains separate.
  • Live screenshots expose a separate existing Control UI projection gap: the generic composer model/thinking picker does not reflect ACP backend controls. This PR verifies /acp acknowledgement text and canonical backend state, not that separate picker. ACP-aware composer projection remains follow-up work.
  • The touched channel delivery suite now uses canonical per-test temporary roots instead of a fixed path that loaded an unrelated old-schema database. Other channel-turn fixed temporary paths remain test-hygiene follow-up work.
  • The live Codex clamp clause is blocked: no suitable advertised pair exists within OpenClaw's current effort allowlist. Upstream ACPX clamp behavior has separate live proof; the allowlist was not expanded.

@steipete
steipete requested a review from a team as a code owner August 28, 2026 19:08
@steipete steipete self-assigned this Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: acpx plugin: file-transfer size: L maintainer Maintainer-authored PR labels Aug 28, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/acpx/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: 6c228b2d004751c9c7c0c55469e53a36f2d21a40
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 7:40 PM ET / 23:40 UTC.

ClawSweeper review

What this changes

Carries ACP backend-accepted control snapshots into persisted sessions and makes Gateway emit one post-delivery completion for ACP replies, with related Control UI lazy-loading and type-test-shard updates.

Merge readiness

⚠️ Ready for maintainer review - 6 items remain

The branch has a coherent owner-boundary repair and no introduced source defect was found. Keep it open for human review until ACPX 0.13.2 and Codex ACP control semantics are checked directly and the stated exact-head runtime/CI gates finish.

Priority: P1
Reviewed head: 6c228b2d004751c9c7c0c55469e53a36f2d21a40
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The source repair and boundary coverage are coherent, with merge confidence limited by unavailable upstream ACPX and Codex contract inspection.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Its supplied partial body records targeted Gateway fixture work and identifies fresh exact-head Gateway/provider/UI proof as a landing gate; omitted body content prevents a negative proof conclusion.
Patch quality 🐚 platinum hermit (4/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Its supplied partial body records targeted Gateway fixture work and identifies fresh exact-head Gateway/provider/UI proof as a landing gate; omitted body content prevents a negative proof conclusion.
Evidence reviewed 9 items Accepted-control owner path: The new reconciliation consumes an accepted ACP option snapshot before the manager persists options, so a backend-clamped or removed thought level is not replayed on a later step.
Completion owner path: ACP dispatch offers completion ownership synchronously, records its terminal result after dispatch, and writes the ACP transcript through the runtime receipt path.
Gateway finalization boundary: Gateway retains reply-dispatch registration through finalization and projects the final outcome after post-hook delivery, avoiding a competing terminal projection.
Findings None None.
Security Needs attention Review ACPX 0.13.2 dependency contents: The plugin changes behavior based on ACPX's new returned control snapshot, but the installed or upstream package source was unavailable here; verify the dependency content and published contract before merge.

How this fits together

ACP model and thinking controls pass through the ACPX plugin to the ACP session manager, which saves what the backend accepted for later turns. Gateway chat dispatch then receives ACP replies, persists their transcript once, and publishes one terminal result to the Control UI.

flowchart LR
A[ACP control command] --> B[ACPX runtime]
B --> C[ACP session manager]
C --> D[Persisted accepted options]
E[Gateway chat request] --> F[ACP reply dispatch]
F --> G[Transcript owner]
G --> H[One chat terminal]
Loading

Decision needed

Question Recommendation
Do ACPX 0.13.2's returned control snapshot and Codex ACP live-control semantics authorize persisting the reconciled values used by this branch? Verify upstream contracts, then merge: Check the ACPX snapshot/result contract and Codex ACP option semantics against upstream source, then accept the exact-head runtime and CI proof.

Why: The patch changes compatibility-sensitive runtime and session behavior, while direct upstream ACPX and required Codex source inspection was unavailable in this reviewer environment.

Before merge

  • Resolve security concern: Review ACPX 0.13.2 dependency contents - The plugin changes behavior based on ACPX's new returned control snapshot, but the installed or upstream package source was unavailable here; verify the dependency content and published contract before merge.
  • Resolve merge risk (P1) - Merging changes a public plugin/runtime return contract and depends on ACPX 0.13.2 providing a complete accepted-control snapshot; that package source and types were unavailable for direct review.
  • Resolve merge risk (P1) - The branch changes terminal and transcript ownership across Gateway and ACP dispatch; the exact-head CI and fresh built Gateway/provider proof identified in the PR remain the appropriate pre-merge gates.
  • Resolve merge risk (P1) - Repository policy requires direct sibling Codex source inspection for this Codex-specific ACP behavior, but that checkout was unavailable; a maintainer must verify the adapter matches Codex ACP control semantics.
  • Complete next step (P2) - Protected maintainer review and direct ACPX/Codex contract verification are needed; no discrete repair finding supports automated follow-up.

Findings

  • [low] Review ACPX 0.13.2 dependency contents — extensions/acpx/package.json:13
Agent review details

Security

Needs attention: No source-level authorization or secret-handling regression was found, but the ACPX dependency update could not be directly source-reviewed.

PR surface

Source +320, Tests +985, Docs +27, Config 0, Other +5. Total +1337 across 66 files.

View PR surface stats
Area Files Added Removed Net
Source 40 584 264 +320
Tests 19 1131 146 +985
Docs 4 28 1 +27
Config 1 1 1 0
Generated 0 0 0 0
Other 2 12 7 +5
Total 66 1756 419 +1337

Review metrics

Metric Value Why it matters
Changed surface 66 files; +1,756/-419 raw lines The repair spans ACP persistence, Gateway completion ownership, Control UI recovery, and CI shard assignment, so merge review must cover more than the ACPX adapter.
Production versus test delta production +~430/-~160; tests +~1,160/-~145; docs/config/lock remainder Production growth establishes accepted-control and completion ownership paths, with substantial boundary and race coverage.

Stored data model

Persistent data-model change detected: serialized state: src/agents/command/attempt-execution.ts, serialized state: src/auto-reply/reply/dispatch-acp-transcript.runtime.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify accepted-control compatibility (recommended)
    Inspect ACPX 0.13.2 and Codex ACP source to establish that returned settings are complete accepted snapshots before persisting them.
  2. Pause pending dependency confirmation
    Do not merge until the dependency contract is available for direct review because this branch changes session persistence and terminal ownership.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Verify upstream ACPX accepted-control snapshot and Codex ACP live-control semantics, then retain only behavior supported by those contracts.

Technical review

Best possible solution:

Verify ACPX 0.13.2 and Codex control contracts against their upstream source, then complete the exact-head runtime and CI evidence before landing the canonical manager and Gateway ownership changes.

Do we have a high-confidence way to reproduce the issue?

Yes for the source-test path: the Gateway completion fixture drives cold and warm ACP dispatch and asserts one terminal and one transcript row pair; no tests were run under the read-only review policy.

Is this the best way to solve the issue?

Yes, conditionally: the source uses the canonical session and post-dispatch owners and removes redundant completion projection, but the upstream ACPX and Codex option contracts need direct verification before merge.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a49da4208bc8.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Its supplied partial body records targeted Gateway fixture work and identifies fresh exact-head Gateway/provider/UI proof as a landing gate; omitted body content prevents a negative proof conclusion.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: The branch repairs ACP model/thinking transitions and reply completion, which affect live agent and chat workflows.
  • merge-risk: 🚨 compatibility: The ACP runtime method gains an accepted-option result contract and upgrades ACPX behavior consumed by persisted sessions.
  • merge-risk: 🚨 session-state: Accepted model and thinking values are reconciled before being saved for later ACP session turns.
  • merge-risk: 🚨 message-delivery: Gateway now changes which layer publishes the final ACP chat outcome and transcript receipt after dispatch.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The member-authored PR is exempt from the external-contributor proof gate. Its supplied partial body records targeted Gateway fixture work and identifies fresh exact-head Gateway/provider/UI proof as a landing gate; omitted body content prevents a negative proof conclusion.

Evidence

Security concerns:

  • [low] Review ACPX 0.13.2 dependency contents — extensions/acpx/package.json:13
    The plugin changes behavior based on ACPX's new returned control snapshot, but the installed or upstream package source was unavailable here; verify the dependency content and published contract before merge.
    Confidence: 0.93

Acceptance criteria:

  • [P1] Inspect ACPX 0.13.2 source/types for complete accepted-control snapshot semantics.
  • [P1] Inspect Codex ACP source for model and live thinking-control semantics.
  • [P1] Run the exact-head Gateway/provider and Control UI scenarios documented by the PR, then confirm exact-head CI.

What I checked:

Likely related people:

  • Chinmayrawat15: Pre-existing ACP manager-control and Gateway finalization ownership traces to the same prior area work. (role: recent area contributor; confidence: medium; commits: 3f749b97ca05; files: src/acp/control-plane/manager.runtime-controls.ts, src/gateway/server-methods/chat-send-reply-finalization.ts)
  • steipete: Merged history attributes stale-chunk recovery and adjacent ACP/Gateway work to this contributor. (role: recent ACP/Gateway contributor; confidence: medium; commits: 233f1f017202, afed61a8bd1; files: ui/src/app/lazy-custom-element.ts, src/acp/control-plane/runtime-options.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Verify ACPX 0.13.2's returned config-options snapshot contract and Codex ACP semantics against upstream source.
  • Complete the exact-head CI and fresh built Gateway/Control UI behavior proof identified in the PR.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-08-28T19:15:27.736Z sha 89ab309 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T19:34:52.252Z sha 89ab309 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T20:41:03.096Z sha 444111b7b5257e24113dceb6ff00d5fdb89545fd :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T21:13:19.051Z sha 7b208b1 :: needs changes before merge. :: [P1] Forward the completion declaration through both dispatch wrappers
  • reviewed 2026-08-28T22:17:12.219Z sha 5137a92c4de030ce451227c3f904153a3fbf21b2 :: needs changes before merge. :: [P1] Forward completion metadata through the reply-state wrapper
  • reviewed 2026-08-28T22:42:31.411Z sha 26e62a8c972d57f77c74b18afdcca535912c7d54 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T23:10:52.938Z sha 28ebccf :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T23:23:18.374Z sha 085d155 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: XL and removed size: L labels Aug 28, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Aug 28, 2026
@steipete
steipete force-pushed the codex/acp-accepted-config-feedback branch from 444111b to 7b208b1 Compare August 28, 2026 21:02
@steipete steipete changed the title fix: keep ACP thinking aligned after model switches fix: preserve ACP model switches and reply completion Aug 28, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 28, 2026
@steipete
steipete force-pushed the codex/acp-accepted-config-feedback branch from 4f941a1 to ef010dc Compare August 28, 2026 22:51
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 28, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 28, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Final-head verification for the ACP model-switch and reply-completion repair at 6c228b2d004751c9c7c0c55469e53a36f2d21a40.

Exact-head CI passed, and the full build passed with the existing UI size limits. The PR body records the focused regression commands, red/green reproductions, broader owner/sibling tests, lint/type/cycle checks, and each CI repair.

Real Codex and Claude Gateway runs completed six provider turns with zero tools. Sol → Terra preserved selected effort; Sonnet → Haiku removed unsupported effort. Both preserved the backend conversation and recalled an unresent fictional phrase after model switching and a full Gateway restart. Every turn produced exactly one correlated first terminal and one new user/assistant transcript pair. Root independently checked saved terminal/history records, not just the worker verdict. Both runs verified cleanup and unchanged artifact provenance.

The real Chromium Control UI also passed: two composer-submitted Claude turns, Sonnet/low → Haiku/no-effort, one visible reply per turn, identical recall, and browser reload restoring exactly the same history without inference. The canonical backend has exactly two user and two assistant turns, zero tools, and stable conversation identity. All three screenshots and representative video frames were personally inspected; they contain only synthetic test data and ephemeral test paths/IDs. Authentication video was deleted, and browser/Gateway/state cleanup plus final provenance checks passed.

The UI retry manifest is 29bcdc48133202a1520b7d4a1045f4967187d95d26e4b12e28527fa4f6cc2e36 (14,407 files). Its product bytes match the CLI manifest exactly. Total authenticated inference budget used: eight prompts.

Known separate UI follow-up visible in the captures: the generic composer model/thinking picker does not project ACP backend controls. This proof uses visible /acp acknowledgement text and canonical backend state; it does not claim that picker is repaired.

The initial browser attempt used zero prompts and failed because the isolated HOME changed Playwright's installed-browser lookup. Only the temporary recorder's package-resolution timing changed; all product/build/dependency bytes, authentication, fresh browser profile, assertions, and deadlines remained unchanged. The new UI manifest differs from the CLI manifest in exactly those two proof files.

Proof limitation: the Codex clamp clause remains explicitly blocked because no advertised public model pair exercises clamping within OpenClaw's existing effort allowlist. This is not reported as an unconditional Codex pass. Upstream ACPX has separate live clamp proof; end-to-end Claude effort removal is verified here.

The latest ClawSweeper dependency-content concern and rank-up requests are addressed by personally inspected published ACPX 0.13.2 source/types, sibling Codex rust-v0.150.1 source, package integrity, exact-head CI, and the live evidence. The optional accepted-result contract remains compatible with void-returning runtimes. Completion receipts are ephemeral callback state describing existing canonical writes, not a new schema or persistence model.

No OpenClaw release is part of this landing. The upstream dependency repair is already published as ACPX 0.13.2.

Before switching: Sonnet with accepted low effort and one real reply

After switching to Haiku: command feedback no longer carries unsupported effort

After browser reload: exactly two replies and preserved recall

acp-model-switch.mp4

@steipete
steipete merged commit 1c40abd into main Aug 28, 2026
264 checks passed
@steipete
steipete deleted the codex/acp-accepted-config-feedback branch August 28, 2026 23:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
* fix: keep ACP thinking aligned after model switches

Carry published ACPX accepted control snapshots through the plugin boundary and reconcile selected thinking in the session owner. Preserve selectable pending thinking on automatic replay, persist accepted changes before later failures, and show effective thinking in command replies. Keep shipped optional-control replay and third-party void backends unchanged.

* fix: give ACP replies one completion owner

* fix: tighten ACP completion type boundaries

* fix(ui): defer native chrome and recover rendered lazy surfaces

* refactor(ui): separate native startup recovery tests

* fix: preserve explicit reply completion ownership

* test: consolidate ACP completion regression fixtures

* chore(ui): refresh boot manifest after main integration

* test: distinguish inbound ACP reply options

* test(ui): target retargeted queue clicks deterministically

* fix(ci): split UI test type graphs within the root budget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: acpx gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. plugin: file-transfer rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant