Repository navigation
fix(subagents): don't re-list delivered child results because of a retained settle marker - #166270
assimetria-ai wants to merge 1 commit into
Conversation
…etained settle marker (openclaw#166267)
|
🦞👀 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. |
|
Thanks for the context here. I did a careful shell check against current Current main solves the reported problems through merged lifecycle and projection fixes while preserving genuine requester continuations and recoverable failures. I found the merged PR that appears to have closed this: #176701: fix(subagents): delivered children stay pending while siblings run. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Close this PR in favor of the merged lifecycle retirement and cleanup-aware projection fixes. Do we have a high-confidence way to reproduce the issue? No runtime reproduction was attempted; current source, regression coverage, and merged production-flow evidence establish that the reported central cases are repaired. Is this the best way to solve the issue? The merged fixes are safer than blanket delivery-status filtering because they retire redundant obligations at their owner and preserve recoverable failures and genuine continuations. Security review: Security review cleared: The diff changes result projection without adding credential access, execution, or authorization paths. AGENTS.md: found and applied where relevant. What I checked:
Codex review notes: model internal, reasoning medium; reviewed against c6f14b27a938; fix evidence: merged PR #176701, commit 850fdaffc3b0, main fix timestamp 2026-10-19T23:12:33Z. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
|
Closing due to inactivity. |
Fixes the render half of #166267 and the
failedcase of #154834.What
hasOutstandingCompletion(subagent-active-context.ts) listed every terminal child that still carries arequesterSettleWakemarker under## Child results awaiting delivery, whatever its owndelivery.statuswas. On a busy top-level requester the marker is retained until no descendant is running, so results that were delivered long ago get re-injected into every turn and grow without bound (138 entries over 5 days in the report; restart does not clear them because the markers are persisted).The change:
delivered/discarded/not_required/failed);failed, the terminal give-up state written byfinalizeResumedAnnounceGiveUp, is no longer treated as awaiting delivery ([Bug]: failed subagent delivery recurs in every turn's runtime context #154834).Pending, in-progress and suspended deliveries are listed exactly as before.
Not in this PR
Releasing or ageing out the marker itself (in
maybeWakeRequesterAfterAllChildrenSettledand the sweeper) is described in #166267. That change touches settle-wake lifecycle and batching, so I left it for a maintainer decision.Tests
subagent-active-context.test.ts:I have not run the suite locally.