Repository navigation
fix(agents): retain completed results in detached recovery replies - #150300
roboclaw-bot wants to merge 1 commit into
Conversation
Keep the original session manager and detached persistence when a tool-free finalizer prepares the recovery answer. Exercise the required process-main- thread broker contract in the live test pool without changing admission. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 5, 2026, 11:56 PM ET / October 6, 2026, 03:56 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR preserves detached task transcripts during tool-free recovery answers and runs live tests in forked processes with a credential-free shared-state regression. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 4 items remain The production fix is superseded by merged work on main, but the protected maintainer label requires human cleanup. The unchanged PR head still contains the previously reported suppression defect; its credential-free broker regression remains unique. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s built-in agent runtime prepares recovery answers after completed tool work fails to produce a final reply. Its session manager supplies the completed results, while transcript guards prevent internal recovery instructions from becoming retained user messages. flowchart TD
A[Detached task] --> B[Completed tool results]
B --> C[Session transcript]
C --> D[Tool-free recovery]
D --> E[Transcript guard]
E --> F[Final answer]
E --> G[Retained conversation]
Decision needed
Why: Automatic closure is prohibited by the maintainer label, and the branch still contains a useful test absent from main. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +42. Total +44 across 4 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep main’s complete transcript and suppression repair; preserve the unique broker regression only if its additional coverage warrants a narrow follow-up. Do we have a high-confidence way to reproduce the issue? Yes, for the pinned PR head: an ordinary detached attempt installs the guard, then finalization reuses it without re-arming suppression. The PR body confirms the resulting retained internal prompt; current main repairs this path, and no tests were executed during this read-only review. Is this the best way to solve the issue? No, the branch is incomplete by itself and its production change is already covered by main’s broader owner-level repair. Only the distinct broker regression warrants a separate retention decision. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4308a8fb8d92; fix evidence: commit 8f924bff5d68, main fix timestamp 2026-09-30T09:54:19Z. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
Closing as superseded. Superseded by #161091 (session manager and detached persistence in recovery finalization) and #150873 (the required forked live-test pool). The additional deterministic broker smoke test is distinct coverage, not an outstanding implementation repair. This closes the PR without deleting its branch. |
Related: #142168
What Problem This Solves
Fixes an issue where users running a detached task could lose the results of completed actions when the task needed a final recovery answer. The actions had already finished, but the final answer was prepared from an empty conversation instead of the task's existing transcript.
Why This Change Was Made
Restricted finalization now retains the original session manager and detached persistence mode while preserving its tool-free, capability-restricted contract. The live test pool also runs on process main threads, as required by the shared-state broker, with a credential-free regression exercising the actual plugin-state range read.
User Impact
Recovery answers can use completed task results without repeating those actions. No model, thinking, authentication, tool-permission, or persistence-policy defaults change.
Evidence
checks-fast-baseline-ratchetsduring dependency installation:@matrix-org/[email protected]receives HTTP 403 downloading its native asset, then its postinstall throwsReferenceError: err is not defined. The ratchet commands never started. Dependency manifests, lockfile, and the install action are unchanged by this PR. Failed job. CI is not claimed green.No live-provider requests or package build were run for this focused fix. Diagnostic response fixtures and private logs are not committed. This PR does not qualify or alter a release candidate.
CI recovery and remaining blockers — September 16
The original attempt-1 Matrix download failure is retained above. After verifying a successful same-asset download in another Ubuntu job from that attempt and a direct public download matching the published SHA-256, one job-specific recovery was requested on this unchanged head. Attempt-2 ratchet job 105001771544 executed the normal postinstall download and the ratchet commands successfully. No dependency/Node pins, postinstall behavior, or source code changed. Only that job and its dependent CI gate executed again; other attempt-2 records retain earlier execution times.
The overall run remains failed because four earlier test-shard failures are retained. No additional retry is being requested here.
The late review finding is also independently confirmed: an actual detached finalization retained its receipt but persisted one internal recovery instruction as a user turn. The original manager's already-installed guard ignores the newly requested one-shot suppression. No production fix has been applied in this CI recovery, and this PR remains blocked pending the guard-owner repair and remaining CI resolution. The diagnostic fixtures and logs are not committed.