Bug: codex exec --json silently drops SendMessage, FollowupTask, InterruptAgent, and ListAgents collab_tool_call items
Maintainer thường phản hồi trong vòng 1 ngày
@akhil9tiet đang làm issue này rồi.
Từ ngày 29/11/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
Hướng nghiên cứu
Bắt đầu trong codex-rs/exec/src/event_processor_with_jsonl_output.rs, quanh match CollabAgentTool trả về None cho bốn lệnh gọi bị loại bỏ. Thêm các biến thể CollabTool còn thiếu trong codex-rs/exec/src/exec_events.rs, sau đó ánh xạ từng biến thể trong processor. Chạy các test liên quan của codex-rs/exec và xác minh rằng luồng JSONL phát ra sự kiện collab_tool_call cho cả bốn lệnh gọi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- Rust
- Star
- 136k
- Fork
- 21.6k
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 999
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openai/codex
-
bug CLI subagent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI exec subagent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI subagent
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
WebSocket client ignores x-codex-turn-state in codex.response.metadataCó thể đã có người làm @akhil9tiet đã nhận hôm nay. Đang mởbug CLI connectivity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
openai/codex#64479 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
nightly-cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
max-sixty/worktrunk#4939 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Flaky Test] tests::signer::v0::miner_recovers_when_broadcast_block_delay_across_tenures_occursĐang mởflaky
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
stacks-network/stacks-core#7918 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
New Mutants FoundĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
rust-bitcoin/rust-bech32#339 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
databendlabs/openraft#2554 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
autofixer: follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tursodatabase/turso#12683 ·
Maintainer thường phản hồi trong vòng 1 ngày