Skip to content

fix(codex): ignore root thread's own subagent activity - #436

Merged
Tryanks merged 4 commits into
mainfrom
fix/codex-root-thread-subagent
Sep 15, 2026
Merged

Tryanks merged 4 commits into
mainfrom
fix/codex-root-thread-subagent

Conversation

@Tryanks

@Tryanks Tryanks commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Codex 0.154 emits subAgentActivity for the root thread itself (agentThreadId == session thread, agentPath /root). tcode treated it as a child and created a synthetic root: /root subagent capsule with no items that stayed in progress forever (and persisted across restarts).

Fix: skip activities whose thread id is our own thread. Adds regression test root_thread_activity_is_not_a_subagent.

Codex 0.154 emits subAgentActivity for the root thread itself
(agentPath "/root"). Treating it as a child created a synthetic
"root: /root" capsule that never completed.
@Tryanks
Tryanks enabled auto-merge (squash) September 15, 2026 20:35
@Tryanks

Tryanks commented Sep 15, 2026

Copy link
Copy Markdown
Owner Author

Also fixes the pre-existing tcode-ui test compile error on main (sidebar.rs IndexSnapshot fixture missing title_generating, left over from #428/#429), which was blocking CI. The Mobile job's Android SDK setup failure is unrelated and also fails on main.

@Tryanks
Tryanks merged commit efb9f49 into main Sep 15, 2026
6 checks passed
@Tryanks
Tryanks deleted the fix/codex-root-thread-subagent branch September 15, 2026 21:16
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