Repository navigation
fix(subagents): make completion handoff review-first - #82724
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. Current main source at Real behavior proof Next step before merge Security Review detailsBest possible solution: Land one coherent review-first handoff change, choosing this focused subagent-only patch or the broader delegated-completion patch based on the desired scope. Do we have a high-confidence way to reproduce the issue? Yes. Current main source at Is this the best way to solve the issue? Yes for the subagent-only bug. Changing the central handoff instruction with matching formatter coverage and docs is the narrow maintainable fix; the only open question is whether the broader delegated-completion PR should be the merge vehicle. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 25090f64b388. |
ad7e099 to
02faea4
Compare
02faea4 to
703fe7c
Compare
703fe7c to
9a5112d
Compare
9a5112d to
e2ad6c7
Compare
e2ad6c7 to
b594434
Compare
b594434 to
bdc817d
Compare
|
Landed in fff8e79. Thanks @100menotu001. Proof:
|
Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
openclaw/openclaw@mainon macOS, branchcodex/subagent-review-handoff, running the actualrunSubagentAnnounceFlowformatter coverage used by the runtime announce path.git show upstream/main:src/agents/subagent-announce.ts | rg -n "ready for user delivery|ready for parent review"rg -n "ready for user delivery|ready for parent review|Review/verify|additional action" src/agents/subagent-announce.ts src/agents/subagent-announce.format.e2e.test.ts CHANGELOG.md | sed -n '1,80p'pnpm exec vitest run --config test/vitest/vitest.e2e.config.ts src/agents/subagent-announce.format.e2e.test.tspnpm exec oxfmt --check --threads=1 src/agents/subagent-announce.ts src/agents/subagent-announce.format.e2e.test.ts CHANGELOG.mdpnpm check:changedgit diff --checkrunSubagentAnnounceFlowwith a temp config/session store and capturedagenthandoff params.runSubagentAnnounceFlowdelivering those instructions through the requesteragenthandoff params.upstream/mainoutput above shows both non-subagent requester handoff branches usedready for user deliverywording before this patch.Root Cause (if applicable)
Regression Test Plan (if applicable)
src/agents/subagent-announce.format.e2e.test.tsUser-visible / Behavior Changes
Subagent completion handoffs now guide the requester/parent agent to verify child results and continue required follow-up work before reporting done. No config or channel behavior changes.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
Steps
upstream/mainsubagent announce instruction text.Expected
ready for parent reviewand instruct review/verification before done.Actual
check:changed, andgit diff --checkpassed.Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
agenthandoff message containing the parent-review/follow-up instruction.SILENT_REPLY_TOKENguidance remains intact on the default branch; requester-is-subagent internal orchestration wording remains unchanged.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations