Skip to content

Subagent activity exposes internal /root paths and repeats lifecycle states #44827

Open

Description

@generyand

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

  1. Start a Codex session with multi-agent collaboration enabled.
  2. Ask the parent agent to delegate named tasks, for example
    task1_quality_review and task2_implementation.
  3. Let one task complete while the next task starts.
  4. 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.rs
    • sub_agent_activity_summary() formats Started \{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:

  1. Prefer the original task_name supplied to spawn_agent.
  2. If no title is available, humanize the final path segment as a fallback.
  3. Centralize lifecycle reduction per agent path/thread so duplicate events are
    ignored and terminal states cannot regress to waiting or working.
  4. Use that display projection for the CLI, desktop activity feed, and other
    app-server consumers.

Related reports

Activity

  1. added
    bug
    CLI
    subagent
    TUI
    on Sep 11, 2026
  2. Masterxilo commented on Nov 21, 2026

    @Masterxilo

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLITUIbugsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions