Repository navigation
Description
Subagent activity exposes internal /root/... paths and repeats lifecycle states
Summary
Codex's multi-agent activity UI shows internal routing paths such as
/root/task1_quality_review instead of human-readable task names. In the same
activity sequence, lifecycle rows can repeat and appear out of order, for
example showing a task as both in progress and completed.
This affects the CLI transcript and other surfaces that consume the same
subagent activity data, rather than one integration or project configuration.
Environment
- Codex CLI:
0.154.0 - Platform: Linux
- Multi-agent workflow: enabled
- No custom
[agents]display-name configuration is present.
Steps to reproduce
- Start a Codex session with multi-agent collaboration enabled.
- Ask the parent agent to delegate named tasks, for example
task1_quality_reviewandtask2_implementation. - Let one task complete while the next task starts.
- Inspect the parent activity feed or terminal transcript.
Actual behavior
The feed renders canonical internal paths:
Started `/root/task1_quality_review`
Completed `/root/task1_quality_review`
Started `/root/task2_implementation`
Completed `/root/task2_implementation`
The same run can also render duplicate waiting/completed rows or leave an
earlier prose status saying a task is still in progress after its completion
row has appeared.
Expected behavior
Display a human-readable task title, for example:
Started Task 1: Quality review
Completed Task 1: Quality review
Started Task 2: Implementation
Completed Task 2: Implementation
Each task should have one coherent lifecycle. Replayed or duplicated events
should not create duplicate rows, and terminal states must not be followed by
older non-terminal states.
Investigation
The current TUI renderer constructs activity text directly from agent_path:
codex-rs/tui/src/multi_agents.rssub_agent_activity_summary()formatsStarted \{agent_path}`andCompleted `{agent_path}``.sub_agent_activity_title()does the same for rendered history rows.
The current upstream tests explicitly snapshot /root/reviewer as the
displayed label in codex-rs/tui/src/app/agent_status_feed_tests.rs.
This confirms the result is current product behavior rather than a stale local
installation or an Orca-specific formatting problem.
Suggested direction
Keep agent_path for routing, but carry or derive a separate display title:
- Prefer the original
task_namesupplied tospawn_agent. - If no title is available, humanize the final path segment as a fallback.
- Centralize lifecycle reduction per agent path/thread so duplicate events are
ignored and terminal states cannot regress to waiting or working. - Use that display projection for the CLI, desktop activity feed, and other
app-server consumers.
Related reports
- Issue: <subagent_notification> duplicates finished wait_agent result #24225: duplicate finished-subagent notifications
- CLI: /agent lists active subagents but provides no thread selector #30813: canonical
/root/...paths and inconsistent active-agent state - /subagents Sub-agents running • No sub-agents running. ■ Agent thread 01a07eee-8fe2-7411-a706-2014404f0efd is no longer available. #43689: subagent lifecycle/state visibility is inconsistent
Activity
Masterxilo commentedon Nov 21, 2026
Human-readable agent names would make the activity feed easier to follow when it’s expanded. We should also be able to hide these interactions altogether. When I’m reading the conversation, I don’t need a row each time Codex starts, contacts, or finishes with a subagent. With activity folded, the rows and their internal IDs (such as
/root/drill) should stay out of the visible/onscreen transcript. Expanding the activity could show the readable names and links to the agents. -> #62999