Skip to content

fix(acp): retain final-only text until dispatch completes - #119589

Closed
clawsweeper[bot] wants to merge 1 commit into
mainfrom
clawsweeper/issue-openclaw-openclaw-92199
Closed

clawsweeper[bot] wants to merge 1 commit into
mainfrom
clawsweeper/issue-openclaw-openclaw-92199

Conversation

@clawsweeper

@clawsweeper clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #92199.

In final_only delivery mode, ACP projector text is now retained through streamed done/error-shaped events and delivered once by the existing dispatch-owned outer settlement. Live delivery behavior remains unchanged.

Release-note context: ACP final-only replies no longer lose assistant prose emitted before tool calls.

@clawsweeper clawsweeper Bot added clawsweeper Tracked by ClawSweeper automation clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge labels Aug 5, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex review: blocked before merge. Reviewed October 1, 2026, 6:20 PM ET / 22:20 UTC (Revision 5).

ClawSweeper review

What this changes

The branch retains buffered ACP final-only replies through terminal-shaped events until the dispatcher settles, and updates projector and dispatch tests.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open for explicit disposition of the human-review hold. The branch’s necessity remains unproven: its regression fixture bypasses the supported producer contract, and the merged lifecycle cleanup explicitly declined to establish a fix for the reported WeChat failure.

Priority: P3
Reviewed head: 61ed1c4b40db7738c45a67bbb69efc585bce9bf4
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused, but its production premise and distinct value beyond the existing lifecycle remain unproven.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor proof gate exempts this bot-authored PR. Its mocked dispatch fixture nevertheless does not establish a supported producer failure or an after-fix WeChat result; the prior reproduction blocker remains unresolved. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor proof gate exempts this bot-authored PR. Its mocked dispatch fixture nevertheless does not establish a supported producer failure or an after-fix WeChat result; the prior reproduction blocker remains unresolved. No stored-data contract changes.
Evidence reviewed 11 items Pinned introduced change: The introduced production change gates projector-local terminal flushing and reset to live mode. The added dispatch fixture mocks the manager and supplies text → done → text → done.
Dispatch and manager ownership: Dispatch creates one projector, forwards manager events, and force-flushes after runTurn resolves or throws. The manager coordinates startTurn events and result before synthesizing the terminal notification; its queued-output test expects text_delta followed by one done.
Affirmative dependency signal: The ACPX plugin pins acpx 0.13.0 and delegates turn execution to its runtime. The claimed terminal sequence therefore requires checking that dependency’s event/result contract.
Findings None None.
Security None None.

How this fits together

ACP connects OpenClaw conversations to external agent runtimes. The session manager forwards runtime output to a reply projector, which prepares channel replies that the dispatcher settles on completion or failure.

flowchart TD
  A[Conversation request] --> B[ACP session manager]
  B --> C[Agent runtime]
  C --> D[Live output and terminal result]
  D --> B
  B --> E[Reply projector]
  E --> F[Dispatch settlement]
  F --> G[Channel reply]
Loading

Decision needed

Question Recommendation
Should the human-review hold end by retiring this rejected branch, or should it remain available for a demonstrated ACP defect beyond the merged lifecycle cleanup? Retire the branch: Resolve the hold by closing the unsupported fix while preserving the existing dispatch lifecycle.

Why: The branch is explicitly held for human review, has an exact-head reject recommendation, and lacks evidence establishing distinct remaining work.

Before merge

  • Resolve merge risk (P1) - No supported manager/backend reproduction establishes that this terminal-event change repairs the reported message loss.
  • Complete next step (P2) - Resolve the human-review hold: retire the branch under the existing reject recommendation, or retain it with a supported ACP reproduction demonstrating distinct remaining work.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source +2, Tests +29. Total +31 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 1 +2
Tests 2 34 5 +29
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 37 6 +31

Review metrics

Metric Value Why it matters
Production versus test growth production +2 net; tests +29 net The stated text-retention justification depends on establishing a supported failure beyond the existing dispatch lifecycle.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Preserve the existing dispatch-owned settlement flow and retain further ACP work only when a supported producer trace establishes a distinct remaining defect.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Preserve the existing dispatch-owned settlement flow and retain further ACP work only when a supported producer trace establishes a distinct remaining defect.

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

No high-confidence current-main reproduction of this PR’s ACP mechanism is established. The WeChat symptom has reporter evidence, but the new fixture supplies a terminal sequence outside the pinned ACPX contract.

Is this the best way to solve the issue?

No: the existing single-dispatch projector already places settlement at the appropriate owner boundary. Further repair needs evidence identifying the actual producer or delivery failure.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against dd2a7baba6c0.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P3: The submitted ACP fix has no established current production failure and awaits disposition of an existing human-review hold.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • osolmaz: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • If retaining the branch, replace the fabricated manager sequence with a supported producer-boundary reproduction and explain what still fails on current main.

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 (4 earlier review cycles)
  • reviewed 2026-08-27T08:54:47.234Z sha 61ed1c4 :: needs real behavior proof before merge. :: [P2] Test the manager boundary instead of fabricating post-terminal output
  • reviewed September 4, 2026, 10:10 PM ET / September 5, 2026, 02:10 UTC sha unknown :: blocked before merge. :: none
  • reviewed 2026-09-05T03:01:33.270Z sha 61ed1c4 :: blocked before merge. :: none
  • reviewed 2026-09-27T20:06:04.977Z sha 61ed1c4 :: blocked before merge. :: [P2] Prove the terminal sequence at the ACP manager boundary

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor Author

🦞🧹
ClawSweeper autofix is enabled.

  • Head: 61ed1c4b40db
  • Label: clawsweeper:autofix
  • Action: exact-head review queued (workflow sweep.yml, event repository_dispatch).
  • Flow: review this head, repair/rebase only if needed, then re-review the exact repaired head until no actionable findings remain.

This is fix-only; I will not merge this PR.

Re-review progress:

@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Repair-sweep blocker for exact head 61ed1c4: REJECT/SUPERSEDE. Direct dependency inspection shows bundled acpx 0.13.0 and shipped 0.10.0/0.13.0 exclude terminal events from startTurn().events; legacy runTurn drains events and derives one terminal from result. No non-ACPX production startTurn implementation exists. The PR regression test mocks the manager and fabricates text -> done -> text -> done, so it does not prove a supported producer path. Issue #92199 proves Tencent WeChat message loss but contains no ACP session/binding/backend/raw-event trace, so ACP attribution is unproven. Keep #92199 open for a separate WeChat/embedded delivery investigation. If generic malformed-runtime hardening is desired, make it a separate manager-boundary change with its own issue and real seam proof. Exact-head CI is green but mock-backed; no code was pushed in this sweep.

@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Aug 14, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor Author

🦞🔧
ClawSweeper picked up the repair feedback.

Source: clawsweeper[bot]
Feedback: structured ClawSweeper needs-human verdict with repairable P-severity findings (sha=61ed1c4b40db7738c45a67bbb69efc585bce9bf4)
Action: repair worker queued. Run: https://github.com/openclaw/clawsweeper/actions/runs/33144635749

I will update this PR branch, or open a safe credited replacement, if the repair worker finds a narrow fix.

Automerge progress:

  • 2026-08-28 03:34:46 UTC review requested repair 61ed1c4b40db (structured ClawSweeper needs-human verdict with repairable P-severity findings...)
  • 2026-08-27 10:05:00 UTC merge check queued 61ed1c4b40db (exact-head ClawSweeper review requires another repair)

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 28, 2026
@clawsweeper clawsweeper Bot added 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. clawsweeper:human-review Needs maintainer review before ClawSweeper can continue and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Sep 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor Author

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [ ] Resolve merge risk (P1) - No supported manager/backend reproduction establishes that this terminal-event change repairs the reported message loss. (sha=61ed1c4b40db7738c45a67bbb69efc585bce9bf4)

Why human review is needed:
ClawSweeper found a blocker that should be resolved or accepted by a maintainer before the repair or automerge loop continues.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If more work is needed, resolve the blocker first, then comment @clawsweeper automerge to re-review and continue. If automation should stay paused, leave clawsweeper:human-review in place or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 27, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Closing this implementation following steipete's explicit REJECT/SUPERSEDE decision for the unchanged head 61ed1c4b40db7738c45a67bbb69efc585bce9bf4: #119589 (comment).

This retires only this PR. It does not establish that the WeChat message loss reported in #92199 was caused by ACP or fixed by this change. Any generic malformed-runtime hardening needs its own manager-boundary proposal and supported-producer evidence, as requested in that review.

@vincentkoc vincentkoc closed this Oct 16, 2026
@RomneyDa
RomneyDa deleted the clawsweeper/issue-openclaw-openclaw-92199 branch October 22, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper:human-review Needs maintainer review before ClawSweeper can continue clawsweeper Tracked by ClawSweeper automation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: [ACP] Text before tool calls is lost in WeChat (intermediate messages dropped, not merged)

2 participants