Issue: <subagent_notification> duplicates finished wait_agent result
Open 💬 3 comments Opened May 23, 2026 by janbam
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Issues:
- Duplication
- Codex is confused about the <subagent_notification> appearing in the message channel, wondering if it's a user message
<img width="1009" height="1061" alt="Image" src="https://github.com/user-attachments/assets/f5ca0184-4868-4045-b2e0-d9e6ee951fc4" />
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
not a duplicate of those two issues. they resulted in app errors and corrupted the session; mine did not.
and i did not have the multi_agent_v2 feature enabled
I can reproduce this in thread
019edce6-71ad-71a1-91f3-54c49a576d6b.This was reproduced with the built-in
exploreragent, not a custom project agent.Repro shape:
explorerwithfork_context=false.wait_agent.<subagent_notification>.close_agent.Observed:
The exact same final message appeared in all three parent-visible channels:
wait_agentreturnedstatus.completed<subagent_notification>later delivered the samestatus.completedclose_agentreturned the same payload inprevious_status.completedImpact:
A subagent final answer that should occupy one unit of parent context can occupy roughly three copies plus wrapper overhead. This is especially costly when the child result is an explorer summary, verification summary, or asset evidence report.
Expected:
Completion payload should have single-consumption semantics, or
close_agentshould supportreturn_status=false, orwait_agentshould be able to consume/suppress the later duplicate notification. At minimum, docs should recommend returning only a tiny result handle/ack from subagents and storing larger results externally.