Skip to content

fix: show a Codex subagent's follow-up turn in a new subagent session - #634

Merged
EugeneTheDev merged 4 commits into
mainfrom
eugenethedev/subagent-followup-turn
Oct 15, 2026
Merged

EugeneTheDev merged 4 commits into
mainfrom
eugenethedev/subagent-followup-turn

Conversation

@EugeneTheDev

Copy link
Copy Markdown
Collaborator

Fixes IJAI-3527.

Codex reports a follow-up to a finished subagent only as a subAgentActivity of kind interacted plus a new child turn, not as a collabAgentToolCall. The finished child stayed closed, so its follow-up turn was dropped live and skipped on session load.

  • Live: reopen a finished child as the next generation (<thread>:generation:N) when it starts a new turn.
  • Replay: open the next generation on interacted when the child thread has that turn.
  • Tests for v1 and v2; verified with real Codex 0.160.1.
  • AGENTS.md: changes must work on both ACP v1 and v2.

Codex reports a follow-up to a finished subagent only as an `interacted`
activity and a new child turn, so the child stayed terminal and its turn
was dropped. Reopen a finished child when it starts a new turn.

Fixes IJAI-3527
Codex records a follow-up to a finished subagent as an `interacted`
activity, but history replay opened a new child generation only on
`started`, so the child's later turns were not replayed. Open the next
generation on `interacted` when the child thread has that turn.

Refs IJAI-3527
@EugeneTheDev
EugeneTheDev merged commit 7c761c7 into main Oct 15, 2026
6 checks passed
@EugeneTheDev
EugeneTheDev deleted the eugenethedev/subagent-followup-turn branch October 15, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant