Repository navigation
release: v0.13.6 — Codex sub-agent events no longer end the run - #68
Merged
Merged
Conversation
Forge treated every event on the Codex app-server connection as the root thread's. When a coder spawned a multi-agent sub-agent, the sub-agent's turn/completed ended the coder's run mid-work, its reply became the run summary, and its thread id was stored as agent_session_id. The next remediation resume then failed with "cannot resume an unloaded multi-agent v2 sub-agent through its parent". Only the root thread's events now complete, fail, or summarize a turn; agent_session_id is always the thread Forge started or resumed; and a Task already holding a sub-agent session falls back to a fresh thread. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
turn/completedended the coder's run mid-work, its reply became the summary, and its thread id was stored asagent_session_id.thread/resume failed: cannot resume an unloaded multi-agent v2 sub-agent through its parent. Seen live on NK-5 (task 697f3579, 10.0.0.2).run_until_turn_completetakes the root thread id; sub-agent events are logged and their usage counted, but cannot complete/fail/summarize the turn.agent_session_idis always the started/resumed thread.is_unresumable_codex_thread_erroralso matches the sub-agent wording so already-poisoned Tasks start fresh.Test plan
cargo test -p cli-adapters --lib codex(36 passed, incl. newsub_agent_events_do_not_complete_fail_or_summarize_the_root_turn)cargo clippy -p cli-adapters --all-targets -D warnings,cargo fmt --check🤖 Generated with Claude Code