Repository navigation
Conversation
…equester A progress card handed to announcing subagents after `sessions_yield` kept the yielding turn's checklist, because the adoption owner followed only the settle wake's tool items. The registry now also follows that wake's `stream: "plan"` updates and hands them to the card through an optional `ProgressContinuationDraft.pushPlan`, which the Telegram and Discord retained cards render with `pushPlanProgress`. Child runs are not followed for plans. Closes openclaw#179867
|
🦞👀 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. What this changesForward resumed-parent checklist updates to retained Telegram and Discord progress cards. Example: A parent yields after creating a three-step recording transcription checklist, then resumes and completes the first step.
Review scores
ProductKind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR fixes a current checklist-forwarding defect without introducing a competing owner; no actionable code defects were found, but the additive public SDK operation needs an owner decision. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe subagent registry follows delegated work and requester settlement runs, forwards public progress to a retained channel draft, and leaves rendering, throttling, transport authorization, and deletion with each channel. flowchart LR
A[Parent yields] --> B[Registry retains draft]
C[Child activity] --> B
D[Requester settlement plan] --> B
B --> E[Channel compositor]
E --> F[Telegram or Discord card]
Technical reviewBest possible solution: Use the existing registry subscription and channel compositor queues to update only the resumed requester's checklist through one accepted optional SDK operation. Do we have a high-confidence way to reproduce the issue? Current-main source drops requester plan events after adoption, and the contributor's inspected base trace reproduces the frozen checklist; no target code was executed during this review. Is this the best way to solve the issue? The patch is the smallest complete repair found: extend the existing draft operation, follow the already-selected requester run, and reuse both channels' compositor queues while excluding child plans. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4397e7409d58. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +27, Tests +71, Docs +3. Total +101 across 9 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 21, 2026, 7:29 PM ET / 23:29 UTC (Revision 2). |
Match the optional operation proposed in openclaw#173026 (`updatePlan(steps, options)`, requester-only `follow` audience) so both repairs share one contract. Telegram forwards the arguments to `pushPlanProgress`; Discord renders them through its shared start-on-first-render queue.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
Closes #179867
What Problem This Solves
Fixes: after a turn yields to announcing subagents, the progress card it hands to them on Telegram or Discord keeps the yielding turn's checklist (
0/3 complete) while the resumed parent updates itsprogress_card.User Impact
User impact: while the requester's settle wake runs on a retained card, the card's checklist follows the parent's
progress_cardupdates (1/3 complete, then later steps), the same as on a live turn's card. Child status rows and prepared operation names are unchanged, and a child's own plan still never reaches the card.Why This Change Was Made
A live turn gets plan updates only through its own dispatch bridge (
stream: "plan"→onPlanUpdate). After adoption the card belongs to the subagent registry (subagent-progress-draft.ts), which already follows the settle wake run for tool activity (requester:tool) but projected onlystream: "item"events, andProgressContinuationDrafthad no way to carry a plan.ProgressContinuationDraftgains the optionalupdatePlan(steps, options)operation, and the registry'sfollowtakes a"child" | "requester"audience: only the settle wake'sstream: "plan"phase: "update"events reachupdatePlan; child runs stay item-only. This is the same contract and signature proposed in fix(telegram): keep progress and final replies after delegation #173026 by @johan-eilertsen, so this narrow repair and that broader one share one operation instead of competing.updatePlanwith the compositor'spushPlanProgress, the same call their live turns use (Discord shares its start-on-first-render step betweenpushandupdatePlan).concepts/subagent-yield-handoff.mdandconcepts/progress-drafts.md.A new user turn in the same session while a card is retained keeps rendering its plan on its own card; this change only covers the settle wake that owns the retained card.
Evidence
Live Telegram proof on head
e0cace07c84(artifacts:proof/179902-live, commitd7ed6dc): isolated source Gateway from this branch, a dedicated test bot on production Telegram, a real Telegram user account (client screenshots plus a 2 s recorder of new messages, edits and deletions),streaming.mode: "progress". Only model decisions are synthetic (mock, adapted from the skill'sreply-policy-mock.mjs);progress_card,sessions_spawn(completionTarget: "parent"),sessions_yieldwith an acknowledgment, the child run, the requester settle wake, card adoption and Telegram delivery are real.progress_card(same message)Recorder timeline (UTC), same Telegram message throughout: 23:08:19 card
0/3 complete→ 23:08:20sessions_yield→ 23:08:23transcribe: runningon the same card (adopted) → 23:12:24 child completed → 23:12:36 settle wakeprogress_cardrev 2 → 23:12:38 card edited to1/3 complete,[x] Fetch the recording,Transcribe it (in progress)→ 23:16:38 final message, card deleted.Same scenario with the four changed production files reverted to
upstream/main(08d77cab437): the settle wake calledprogress_card(1/3) at 22:55:34 and the card stayed0/3 completeuntil it was retired with the final at 22:55:56 (events).Tests and checks:
mainand green with the fix (each production file reverted alone):src/agents/subagents/registry/subagent-progress-draft.test.ts› "shows the resumed requester's checklist but never a child's": a child's plan event while it runs and the settle wake's own plan;updatePlanmust be called exactly once with the wake's plan. Onmain:Number of calls: 0. A mutation that also follows child plans fails with the child step in the second call.extensions/telegram/src/bot-message-dispatch.progress-lifecycle.telegram-http.test.ts› "replaces the retained card's checklist with the requester's plan" (Bot API HTTP fixture:0/2 complete→1/2 completeon the retained message).extensions/discord/src/monitor/message-handler.draft-preview.rest.test.ts› "replaces the retained card's checklist with the requester's plan" (REST fixture:▸ Fetch the recording→▸ Transcribe it).node scripts/run-vitest.mjson the three files: 14 + 18 + 21 passed.tsgo:tsconfig.core.json,tsconfig.extensions.json,test/tsconfig/tsconfig.core.test.agents-sessions.json, and a focused config over the two channel test files: clean.oxfmt --check,oxlint,git diff --check,format-docs --check,check-line-cap-ratchet --base upstream/main: clean.check-max-lines-ratchet --base upstream/mainreports only twoui/src/pages/*-page-state.tsfiles that this PR does not touch (their suppressions are already onmain).Review:
autoreview --mode branch --base upstream/mainone0cace07c84(Codex, gpt-6.1-sol, P0 threshold) → scoped-clean, no actionable findings.