Bug: codex exec --json CollabToolCallItem omits error details when status is failed
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず codex-rs/exec/src/exec_events.rs で CollabToolCallItem と McpToolCallItem を比較し、次に codex-rs/exec/src/event_processor_with_jsonl_output.rs のマッピングを調べます。コラボレーション呼び出しの失敗が生成される箇所を追跡し、失敗理由をアイテムに渡せるようにします。完了条件は、失敗したコラボレーション呼び出しが JSONL で値が設定されたオプショナルな error をシリアライズし、成功した呼び出しは変更されないまま、出力をカバーする関連 Rust テストが存在することです。
索引モデルが issue の本文から書いたものです。
説明
Version / Commit
- Observed in:
codex-cli 0.172.0(codex exec --json) - Verified on
main(065e18b)
Summary
When a multi-agent collaboration tool call (spawn_agent, send_input, wait, resume_agent, close_agent) fails, codex exec --json emits a collab_tool_call item with "status": "failed", "receiver_thread_ids": [], and "agents_states": {} — with no error field or failure reason.
By contrast, McpToolCallItem in the same file (codex-rs/exec/src/exec_events.rs) includes pub error: Option<McpToolCallItemError> so headless JSONL consumers can inspect why a tool call failed.
Source Location (main @ 065e18b)
- No
errorfield onCollabToolCallItem—codex-rs/exec/src/exec_events.rs:252-259:pub struct CollabToolCallItem { pub tool: CollabTool, pub sender_thread_id: String, pub receiver_thread_ids: Vec<String>, pub prompt: Option<String>, pub agents_states: HashMap<String, CollabAgentState>, pub status: CollabToolCallStatus, } - JSONL serialization —
codex-rs/exec/src/event_processor_with_jsonl_output.rs:233-262:
MapsThreadItemPayload::CollabAgentToolCalltoCollabToolCallItemwithout any error message field.
Reproduction
- Run
codex exec --jsonon a multi-agent workflow wherespawn_agentfails (for example, exceedingmax_threadsor passing an invalidtask_name). - Inspect the emitted
item.completedJSONL event:statusis"failed",receiver_thread_idsis[],agents_statesis{}.- No error string or reason code is present anywhere in the JSONL event, making it impossible for automated runners or trace evaluators to distinguish thread-limit exhaustion, validation errors, and
not_foundtarget errors from the JSONL stream.
(Reproduced during TraceTrial-Bench Core-95 evaluation on L3-widefanout-004 — 6 consecutive spawn_agent failures with no failure reason in JSONL — with [email protected].)
Expected Behavior
Include an optional error field (e.g. #[serde(skip_serializing_if = "Option::is_none")] pub error: Option<...> matching McpToolCallItem) on CollabToolCallItem and populate it when a collaboration tool call fails.
- 主要言語
- 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 subagent
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
Bug: codex exec --json silently drops SendMessage, FollowupTask, InterruptAgent, and ListAgents collab_tool_call items対応中かも @akhil9tiet が今日担当しました。 オープンbug CLI exec subagent
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openai/codex#64533 · コメント 2 件 ·
メンテナーはふだん 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 日以内に返信