Repository navigation
fix: hide subagent coordination and stop reply loops - #150625
Conversation
|
🦞👀 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 September 17, 2026, 6:31 AM ET / 10:31 UTC (Revision 6). ClawSweeper reviewWhat this changesThe PR hides child-agent coordination from chat while preserving transcripts and useful results, prevents reciprocal acknowledgments, and suppresses completed control-marker fragments. Merge readiness⛔ Blocked before merge - 2 items remain This PR retains meaningful work beyond the related merged fixes. The earlier steering finding is resolved, and the inspected changes do not support carrying forward the generic config/default compatibility blocker. No blocking correctness finding remains. Priority: P1 Review scores
Verification
How this fits togetherSession messaging routes requests between OpenClaw agents and manages their replies. Shared transcript and Gateway display owners preserve internal context while deciding what appears in chat, history, and reconnects. flowchart TD
A[Session message] --> B[Canonical sender lineage]
B --> C[Reply and turn owner]
C --> D[Raw transcript]
C --> E[Shared visibility policy]
D --> E
E --> F[Live chat and history]
C --> G[Requested result delivery]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one lineage-based coordination policy across delivery, transcript writers, and chat projections, while preserving visible human answers and existing completion ownership. Do we have a high-confidence way to reproduce the issue? Yes, from source and supplied evidence: current main lacks coordination filtering and completed-buffer handling for repeated markers with a partial tail. This review inspected the corresponding regressions and screenshots without executing target code. Is this the best way to solve the issue? Yes. The patch extends existing lineage, reply, transcript, and display owners; inspected controls preserve independent peers, requested late results, human follow-ups, and unattributed history. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3bbe54346069. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
6fc71cc to
c8957ab
Compare
Keep child reports and their automatic coordination turns out of chat while preserving raw transcripts, useful parent answers, and independent peer replies. Deliver requested late child results once through the existing completion path. Use canonical source lineage consistently during live admission and history projection, preserve human followups and pending-question ownership, and clear streamed control-marker fragments when their output becomes suppressed. Closes #150488
Keep host acquisition outside admitted history readers while sharing canonical row selection, ACP metadata reads, and subagent depth policy through leaf modules. Filter control-only commentary fallbacks before sanitizing them into empty rows, retain structured and transcript media, and preserve history cursor boundaries. Move child requester coverage to the one-way matrix and regenerate the Workboard asset manifest affected by the provenance schema change.
c8957ab to
a709bb6
Compare
Apply the visibility mismatch guard only to new inbound user turns. Internal guidance can steer its active owner, while human messages still receive visible FIFO followups and pending questions retain their existing authority checks. Restore ordinary injection-target discovery and exercise the real sessions_send queue and transcript path alongside the existing steering controls.
|
Addressed the internal-steering finding in 08ca78e0d7c8. The visibility guard now applies only to inbound human turns. Internal guidance retains the active run's output owner; final human admission still preserves visible FIFO followups and the existing pending-question authority checks. The obsolete question-only discovery exception was removed. The entry-point regression exercises |
Keep child reports one-way and preserve one useful late result for ordinary child follow-ups. Isolated Cron requesters retain target announcements without receiving automatic reply or failure turns. Preserve the current main terminal-flush repair and exec authority at worker handoff while retaining canonical history ownership and hidden coordination. Repair an inherited CI planner lint failure while preserving fresh shard copies.
|
Merged via squash.
|
* fix: hide subagent coordination and stop reply loops Keep child reports and their automatic coordination turns out of chat while preserving raw transcripts, useful parent answers, and independent peer replies. Deliver requested late child results once through the existing completion path. Use canonical source lineage consistently during live admission and history projection, preserve human followups and pending-question ownership, and clear streamed control-marker fragments when their output becomes suppressed. Closes openclaw#150488 * fix: preserve history reader isolation and cursor boundaries Keep host acquisition outside admitted history readers while sharing canonical row selection, ACP metadata reads, and subagent depth policy through leaf modules. Filter control-only commentary fallbacks before sanitizing them into empty rows, retain structured and transcript media, and preserve history cursor boundaries. Move child requester coverage to the one-way matrix and regenerate the Workboard asset manifest affected by the provenance schema change. * fix: allow internal steering during hidden coordination Apply the visibility mismatch guard only to new inbound user turns. Internal guidance can steer its active owner, while human messages still receive visible FIFO followups and pending questions retain their existing authority checks. Restore ordinary injection-target discovery and exercise the real sessions_send queue and transcript path alongside the existing steering controls.
Closes #150488
What Problem This Solves
Worker reports and automatic acknowledgments flood chat, and repeated control markers with an unfinished tail can become a visible final reply.
User Impact
Child coordination stays in agent context and raw transcripts. Chat keeps useful parent answers and task results, including requested results that arrive after the parent finishes waiting. Independent peer reply loops remain available. Historical messages without sender provenance remain visible because their origin cannot be determined safely.
Why This Change Was Made
The existing session owner classifies child traffic from canonical lineage. A child report does not start a reciprocal acknowledgment turn. An ordinary new child turn returns its result inline or delivers it once after the wait expires. Steering, registered task completion, paused-task resume, and isolated scheduled jobs retain their existing completion and announcement owners.
One visibility decision reaches live events, transcript writers, history pages, deltas, and reconnects. Internal guidance can steer a hidden coordination run, while a new human message keeps a visible FIFO turn. Pending-question answers retain their current authority checks. Readonly history workers consume the stores selected and admitted by the host; bounded input lookups preserve incremental history and media.
This integrates the streaming-prefix repair from #150527 and preserves main's immediate-final flush. The remaining control-text case is a completed buffer containing repeated markers and an unfinished tail. The screenshots below compare that case and history against main after #150527. User configuration, SQLite schemas, indexes, migrations, and retention are unchanged. A one-line repair also resolves an inherited CI planner lint failure while preserving its fresh shard copies.
Evidence
Synthetic before/after proof uses the production history projector and Gateway event handler. Both human turns and the meaningful parent answer survive. The completed control-reply examples are settled, with no active spinner. All four images were inspected and verified in the originating chat and rendered PR comment.