Skip to content

Fix ACP streamed progress summary spacing - #78383

Merged
amknight merged 1 commit into
mainfrom
codex/fix-acp-progress-summary-chunks
May 6, 2026
Merged

amknight merged 1 commit into
mainfrom
codex/fix-acp-progress-summary-chunks

Conversation

@amknight

@amknight amknight commented May 6, 2026

Copy link
Copy Markdown
Member

Summary

Fixes #78312.

Verification

  • pnpm test src/acp/control-plane/manager.test.ts
  • pnpm exec oxfmt --check --threads=1 src/acp/control-plane/manager.core.ts src/acp/control-plane/manager.test.ts CHANGELOG.md
  • git diff --check origin/main...HEAD
  • Deterministic helper-level repro: old join produced 현재 작업 디 렉토 리는 /home/ by kim 0119/ .open claw/ workspace 입니다; fixed join produced 현재 작업 디렉토리는 /home/bykim0119/.openclaw/workspace 입니다.

Notes

  • Crabbox/Blacksmith Testbox focused validation was attempted, but the lease stayed queued for several minutes and was stopped cleanly before PR creation.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels May 6, 2026
@clawsweeper

clawsweeper Bot commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Summary
The branch preserves ACP progress text chunk boundaries in background-task summaries, adds manager regression coverage, and updates the unreleased changelog.

Reproducibility: yes. Current main reproduces at the helper/source level with a deterministic chunk sequence, and the reported ACP path routes non-thought text_delta output through the same helper.

Real behavior proof
Not applicable: The contributor proof gate does not apply to this MEMBER-authored PR, but the later Crabbox log comment provides real pass/fail/pass validation for the changed behavior.

Next step before merge
Protected maintainer PR with no discrete repair finding; maintainers should review and land after required checks settle.

Security
Cleared: The diff only touches TypeScript text normalization, colocated tests, and the changelog; no concrete security or supply-chain concern was found.

Review details

Best possible solution:

Land the focused helper, test, and changelog change after required checks complete, preserving streamed token boundaries without changing broader ACP task delivery.

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

Yes. Current main reproduces at the helper/source level with a deterministic chunk sequence, and the reported ACP path routes non-thought text_delta output through the same helper.

Is this the best way to solve the issue?

Yes. The PR changes the private ACP progress-summary helper directly, keeps terminal blocked-summary detection covered, and avoids adding config or broader task-delivery behavior.

What I checked:

Likely related people:

  • steipete: Local blame for the helper, ACP stream handling, and existing task-registry test points to Peter Steinberger, and recent ACP manager refactors in the available history are also by this maintainer. (role: recent maintainer and exact-path owner; confidence: high; commits: 8f3a34e2a18d, b1abf9d8ae44, c42ec81e37f5; files: src/acp/control-plane/manager.core.ts, src/acp/control-plane/manager.test.ts)
  • Frank Yang: Available ACP history includes a recent stale-binding repair in the same ACP manager/test area, making this a reasonable secondary routing candidate if the task lifecycle interaction needs review. (role: adjacent ACP lifecycle maintainer; confidence: low; commits: c14b169a1b9b; files: src/acp/control-plane/manager.core.ts, src/acp/control-plane/manager.test.ts)

Remaining risk / open question:

Codex review notes: model gpt-5.5, reasoning high; reviewed against ffafa9008da2.

@amknight

amknight commented May 6, 2026

Copy link
Copy Markdown
Member Author

Hetzner Crabbox validation completed on cbx_56520cfdcf75 (coral-barnacle, ccx63).

Remote setup:

  • Node v22.22.2
  • pnpm 10.33.2
  • checkout fa4af84a099fcd8f7d9d27297f022d20b0a85d01

Proof sequence:

  1. Fixed branch: pnpm test src/acp/control-plane/manager.test.ts -- --reporter=verbose passed, 57/57 tests.
  2. Repro: temporarily checked out origin/main -- src/acp/control-plane/manager.core.ts; the same test failed as expected with the old synthetic-space behavior:
    • Write failed: permission denied for /root/ oc-acp-write- should-fail.txt.
    • 현재 작업 디 렉토 리는 /home/ by kim 0119/ .open claw/ workspace 입니다
  3. Restored patched helper with git restore --source=HEAD --staged --worktree src/acp/control-plane/manager.core.ts; the same test passed again, 57/57 tests.

Crabbox final JSON summary: provider hetzner, lease cbx_56520cfdcf75, exitCode 0, totalMs 100780.

@amknight
amknight marked this pull request as ready for review May 6, 2026 09:24
@amknight

amknight commented May 6, 2026

Copy link
Copy Markdown
Member Author

Added the requested CLI/Gateway proof on Hetzner Crabbox, using a deterministic fake ACP process only to control the streamed chunk boundaries. The OpenClaw path under test was the real CLI/Gateway/task flow:

  • openclaw gateway run
  • openclaw gateway call health
  • temporary CLI device approval for operator.admin
  • openclaw gateway call tools.invoke --params '{"name":"sessions_spawn", ... "runtime":"acp" ...}'
  • openclaw tasks list --runtime acp --json

Results:

  • Patched branch fa4af84a09 on Hetzner Crabbox cbx_00f293df7451:

    • fixed_status=succeeded
    • fixed_run_id=f4b84f61-1227-4815-a2fa-e96bdf41885f
    • fixed_summary=현재 작업 디렉토리는 /home/bykim0119/.openclaw/workspace 입니다
  • Clean detached origin/main 7a73b37f87 on Hetzner Crabbox cbx_9b1d295bb3c7:

    • main_status=succeeded
    • main_run_id=204df228-eeeb-46b7-ae98-010733be6788
    • main_summary=현재 작업 디 렉토 리는 /home/ by kim0119/ .open claw/workspace 입니다

That proves the old CLI/Gateway ACP task summary path inserts synthetic spaces across stream chunks, and this PR preserves the intended chunk joins for the same flow.

@amknight
amknight merged commit fa44500 into main May 6, 2026
160 of 162 checks passed
@amknight
amknight deleted the codex/fix-acp-progress-summary-chunks branch May 6, 2026 10:00
@bykim0119

Copy link
Copy Markdown

Thanks for landing this — glad the fix is in main.

I had opened #78319 (linked from #78312) a few hours earlier with the same root-cause analysis and a very similar Korean/path repro, and byungskers had already reviewed it.

Would you be open to adding a Co-Authored-By: bykim0119 [email protected] trailer in a small follow-up commit, or otherwise noting the attribution in the changelog/PR trail? Either is totally fine — I’d just appreciate having the original report and PR reflected somewhere in the history.

Thanks for considering it.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ACP background-task summary corrupts token-streamed text (CJK breaks into single chars, paths split with spaces)

2 participants