What version of Codex CLI is running?
codex-cli 0.137.0
What subscription do you have?
Other
Which model were you using?
gpt-5.5
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What terminal emulator and version are you using (if applicable)?
PowerShell 7.6.2
Codex doctor report
Not included.
What issue are you seeing?
A subagent can finish without its result being delivered back to the parent thread if the parent compacts while the subagent is still running.
The sequence I saw is:
- Parent spawns a subagent.
- Subagent keeps working in the background.
- Parent thread compacts.
- Subagent finishes.
- Parent never receives the subagent completion/result message.
After that, the parent behaves as if the subagent never reported back.
What steps can reproduce the bug?
- Start a Codex CLI session with subagents enabled.
- Spawn a subagent for a task that takes long enough to still be running after the parent continues.
- Trigger context compaction in the parent thread before the subagent finishes.
- Let the subagent finish after compaction.
- Check the parent thread.
The expected subagent completion message does not appear.
What is the expected behavior?
A subagent result should still be delivered to the parent if the parent compacts before the subagent finishes.
Compaction should not make the parent lose a later child completion/result message.
Additional information
This looks related to the parent mailbox / pending-input path used for multi-agent completion delivery. My guess is that compaction replaces the active parent task and the queued child completion is either dropped or never surfaced into the resumed parent context.
What version of Codex CLI is running?
codex-cli 0.137.0What subscription do you have?
Other
Which model were you using?
gpt-5.5What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64What terminal emulator and version are you using (if applicable)?
PowerShell 7.6.2
Codex doctor report
Not included.
What issue are you seeing?
A subagent can finish without its result being delivered back to the parent thread if the parent compacts while the subagent is still running.
The sequence I saw is:
After that, the parent behaves as if the subagent never reported back.
What steps can reproduce the bug?
The expected subagent completion message does not appear.
What is the expected behavior?
A subagent result should still be delivered to the parent if the parent compacts before the subagent finishes.
Compaction should not make the parent lose a later child completion/result message.
Additional information
This looks related to the parent mailbox / pending-input path used for multi-agent completion delivery. My guess is that compaction replaces the active parent task and the queued child completion is either dropped or never surfaced into the resumed parent context.