Bug: codex exec --json silently drops SendMessage, FollowupTask, InterruptAgent, and ListAgents collab_tool_call items
メンテナーはふだん 1 日以内に返信
@akhil9tiet がすでに取り組んでいます。
2026年11月29日 から。
評価
調査の方向性
codex-rs/exec/src/event_processor_with_jsonl_output.rs の、4つの破棄された呼び出しに対して None を返す CollabAgentTool の match の周辺から始めます。codex-rs/exec/src/exec_events.rs に不足している CollabTool のバリアントを追加し、その後、processor で各バリアントをマッピングします。関連する codex-rs/exec のテストを実行し、JSONL ストリームが 4 つの呼び出しすべてに対して collab_tool_call イベントを出力することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Version / Commit
- Observed in:
codex-cli 0.172.0(codex exec --json) - Verified on
main(065e18b)
Summary
In codex exec --json, multi-agent collaboration tool calls for SendMessage, FollowupTask, InterruptAgent, and ListAgents are silently dropped (return None) instead of being serialized as collab_tool_call JSONL events. Only SpawnAgent, SendInput, ResumeAgent, Wait, and CloseAgent are emitted.
Because codex exec --json is the machine-readable event stream for headless automation, CI, and trajectory auditing, dropping these four tool call types makes multi-agent handoffs and follow-up tasks invisible to downstream consumers.
Source Location (main @ 065e18b)
codex-rs/exec/src/event_processor_with_jsonl_output.rs:233-256:
ThreadItemPayload::CollabAgentToolCall {
tool,
sender_thread_id,
receiver_thread_ids,
prompt,
agents_states,
status,
..
} => Some(ExecThreadItem {
id: make_id(),
details: ThreadItemDetails::CollabToolCall(CollabToolCallItem {
tool: match tool {
CollabAgentTool::SendMessage
| CollabAgentTool::FollowupTask
| CollabAgentTool::InterruptAgent
| CollabAgentTool::ListAgents => return None,
CollabAgentTool::SpawnAgent => CollabTool::SpawnAgent,
CollabAgentTool::SendInput => CollabTool::SendInput,
...
Reproduction
- Run
codex exec --jsonon a multi-agent workflow that invokessend_message,followup_task,interrupt_agent, orlist_agents(e.g., spawning subagents and sending a follow-up task or listing active agents). - Inspect the emitted JSONL stream:
spawn_agent/wait/close_agentappear ascollab_tool_callitems, whereassend_message,followup_task,interrupt_agent, andlist_agentsproduce noitem.startedoritem.completedevents at all.
(Observed during TraceTrial-Bench Core-95 multi-agent evaluation on C6-infra-research-subagent-001 with [email protected].)
Expected Behavior
Add the corresponding CollabTool variants in codex-rs/exec/src/exec_events.rs (SendMessage, FollowupTask, InterruptAgent, ListAgents) and map them in event_processor_with_jsonl_output.rs so all multi-agent collaboration tool calls are faithfully represented in codex exec --json.
Related: #53017 (SDK TypeScript item types vs. exec JSONL wire format).
- 主要言語
- Rust
- スター
- 136k
- フォーク
- 21.6k
- 平均マージ
- 1分
- マージ済み PR(30日)
- 999
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openai/codex のほかの issue
-
bug CLI subagent
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug CLI exec subagent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug CLI subagent
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
WebSocket client ignores x-codex-turn-state in codex.response.metadata対応中かも @akhil9tiet が今日担当しました。 オープンbug CLI connectivity
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
openai/codex#64479 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug CLI
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
nightly-cleanup
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
max-sixty/worktrunk#4939 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Flaky Test] tests::signer::v0::miner_recovers_when_broadcast_block_delay_across_tenures_occursオープンflaky
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
stacks-network/stacks-core#7918 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
New Mutants Foundオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rust-bitcoin/rust-bech32#339 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
databendlabs/openraft#2554 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
autofixer: follow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tursodatabase/turso#12683 ·
メンテナーはふだん 1 日以内に返信