Skip to content

fix(subagents): don't re-list delivered child results because of a retained settle marker - #166270

Closed
assimetria-ai wants to merge 1 commit into
openclaw:mainfrom
assimetria-ai:fix/166267-settle-marker-delivered-results
Closed

assimetria-ai wants to merge 1 commit into
openclaw:mainfrom
assimetria-ai:fix/166267-settle-marker-delivered-results

Conversation

@assimetria-ai

Copy link
Copy Markdown

Fixes the render half of #166267 and the failed case of #154834.

What

hasOutstandingCompletion (subagent-active-context.ts) listed every terminal child that still carries a requesterSettleWake marker under ## Child results awaiting delivery, whatever its own delivery.status was. 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:

Pending, in-progress and suspended deliveries are listed exactly as before.

Not in this PR

Releasing or ageing out the marker itself (in maybeWakeRequesterAfterAllChildrenSettled and 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:

  • delivered / failed / discarded + retained marker → not listed
  • pending + marker → still listed

I have not run the suite locally.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Oct 6, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

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
Relationship: superseded
Canonical: #176701
Summary: The merged lifecycle repair owns the central retained-wake problem; a separate merged projection repair covers settled failed deliveries.

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 details

Best 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.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

@openclaw-barnacle openclaw-barnacle Bot closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant