Skip to content

release: v0.13.6 — Codex sub-agent events no longer end the run - #68

Merged
mai1015 merged 1 commit into
mainfrom
release/v0.13.6
Sep 27, 2026
Merged

mai1015 merged 1 commit into
mainfrom
release/v0.13.6

Conversation

@mai1015

@mai1015 mai1015 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Codex multi-agent runs interleave sub-agent threads on one app-server connection. Forge read every event as the root thread's, so a sub-agent's turn/completed ended the coder's run mid-work, its reply became the summary, and its thread id was stored as agent_session_id.
  • Next remediation resume failed: 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).
  • Fix: run_until_turn_complete takes the root thread id; sub-agent events are logged and their usage counted, but cannot complete/fail/summarize the turn. agent_session_id is always the started/resumed thread. is_unresumable_codex_thread_error also matches the sub-agent wording so already-poisoned Tasks start fresh.
  • Version bump to 0.13.6 + CHANGELOG.

Test plan

  • cargo test -p cli-adapters --lib codex (36 passed, incl. new sub_agent_events_do_not_complete_fail_or_summarize_the_root_turn)
  • cargo clippy -p cli-adapters --all-targets -D warnings, cargo fmt --check
  • CI

🤖 Generated with Claude Code

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]>
@mai1015
mai1015 merged commit 958c564 into main Sep 27, 2026
10 checks passed
@mai1015
mai1015 deleted the release/v0.13.6 branch September 27, 2026 07:24
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