Repository navigation
codex: a thread's subAgentActivity changes only its own children's tasks and edges - #65
Merged
Merged
Conversation
…sks and edges In codex collaboration V2 a thread reports `subAgentActivity` on its own thread both for the children it started and for messages it sends to peers. Recorded on 0.158.0 (root R starts alpha A and beta B, A messages B and starts gamma G, G messages R): - G's `interacted /root` became `task_updated` for the root thread, a phantom task, and A's `interacted /root/beta` reopened B as running; - G's `started` on A's thread linked R → G, because the edge's parent fell back to the root when the item names no `senderThreadId`. The projection now remembers which thread started each child. An item other than `started` is a task change or an edge only when it is about the reporting thread's own child; one naming the root, or a child another thread started, is peer messaging and stays on the frame only. A child whose start the stream does not hold (started before a resume) is taken to be the reporter's, as before. The edge parent defaults to the reporting thread. The replay fixture `codex-peers.raw.jsonl` is that recording, scrubbed to the lifecycle and collaboration items. Closes #60. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review on #65: when a thread's `started` item is not in the stream (it started before a resume), its canonical `agentPath` still names its parent. The projection now records each started child's path; the root's is `/root`. For an item about a thread with no recorded start, the thread at dirname(agentPath) decides; when that thread is unknown but the reporter's own path is known, the child is someone else's. Only when neither is known does the child count as the reporter's, as before. So after a resume, alpha's `interacted /root/beta` is no longer read as a task change for beta, while alpha's `completed /root/alpha/gamma` still ends gamma's task. Co-Authored-By: Claude Opus 5.5 <[email protected]>
xxchan
added a commit
that referenced
this pull request
Oct 2, 2026
Updates docs/runtimes/codex.md for #65: a thread's subAgentActivity changes only its own children's tasks and edges; peer messages (a subagent messaging a sibling or the root) stay on the frame. Edge parent is the reporting thread when the item names no sender. Closes #60. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: exe.dev user <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Merged
xxchan
added a commit
that referenced
this pull request
Oct 2, 2026
Patch release: - #65 codex: a thread's `subAgentActivity` changes only its own children's tasks and edges. A subagent messaging a sibling or the root no longer creates a phantom root task or reopens the sibling; a grandchild's edge comes from its real parent (found by the daily inspection, closes #60). - #67 `--version` probe failures keep the native reason and stderr tail; the codex test-home warmup waits for a successful handshake and exit. - #68 codex: the first app-server initialization per `CODEX_HOME` is coordinated within one OAR module. codex 0.160.0 fails SQLite initialization when several processes first open a fresh home at once (upstream openai/codex#50290); sessions, account usage and inventories now wait for the first handshake, then start concurrently. Eight cold concurrent opens went from 1/8 to 8/8. - Docs: the 2026-10-02 maintenance pass (#62, #63, #64, #66). Version bump only in this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: exe.dev user <[email protected]> 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.
Closes #60.
Problem
In codex collaboration V2 a thread reports
subAgentActivityon its own thread, both for children it started and for messages it sends to peers. Recorded on 0.158.0 (root R starts alpha A and beta B; A messages B and starts gamma G; G messages R), the projection produced:task_updatedfor the root thread from G'sinteracted /root, a phantom task that never ends;task_updated runningfor B from A'sinteracted /root/beta, which reopens B althoughsend_messagestarts no turn;startedon A's thread, because the parent fell back to the root when the item has nosenderThreadId.Fix
The projection remembers which thread started each child (
subagents, with each child's path). An item other thanstartedis a task change or an edge only when it is about the reporting thread's own child. One naming the root, or a child another thread started, is peer messaging and stays on the frame only. A collaboration item's edge parent defaults to the reporting thread instead of the root.A thread whose
startedis not in the stream (it started before a resume) is judged by itsagentPath: the thread at its parent path decides (the root's path is/root, a child's comes from itsstarteditem); when that thread is unknown but the reporter's own path is known, it is someone else's child. Only when neither is known is it taken to be the reporter's, so itscompletedstill reaches the task panel (review on the first version).Code and tests only;
docs/runtimes/codex.mdis left for the docs compaction in progress. Not covered: peer messages carried bycollabAgentToolCallwithreceiverThreadIds(older schema); no recording of that case.Evidence
tests/replay/fixtures/codex-peers.raw.jsonl: the 0.158.0 probe recording (4 threads), scrubbed to lifecycle and collaboration items, thread ids renamed. The new replay test asserts the task events and edges; onmainit receives the two extratask_updatedevents above.oar run codex) was given the claim and evidence and asked to find an input that now yields a wrong task event or edge; verdict NOT REFUTED.starteditems): alpha'sinteracted /root/betachanges nothing, alpha'scompleted /root/alpha/gammaends gamma's task.pnpm run check: 463 tests passed, sea trial mock 18/18.🤖 Generated with Claude Code