Duplicate Started entries for a single subagent in CLI 0.146.0
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
Research direction
Start by inspecting PR #35363 and commit af7f6f4, then trace how the TUI handles SubAgentActivity ItemStarted and ItemCompleted events. Reproduce the issue with codex-cli 0.146.0 using --no-alt-screen and verify that one spawn_agent call produces exactly one Started entry for each unique subagent.
Written by the indexing model from the issue text.
Description
What version of Codex CLI is running?
codex-cli 0.146.0
What subscription do you have?
Not recorded.
Which model were you using?
Not recorded.
What platform is your computer?
Linux 7.0.0-28-generic x86_64
What issue are you seeing?
The TUI renders two identical Started <agent-path> lines for one actual subagent. The unique agent tree contains one agent, so the duplicate notification is misleading.
Evidence from an isolated TUI session started with --no-alt-screen:
spawn_agent requested once: /root/ui_probe
Started /root/ui_probe
Started /root/ui_probe
unique agent listing: /root/ui_probe (one entry)
The same pattern occurred for three distinct subagents in a separate main session.
What steps can reproduce the bug?
- Run Codex CLI 0.146.0 in the TUI (for example, with
--no-alt-screen). - Call
spawn_agentonce to create one subagent. - Observe the TUI notifications and list the active agents.
What is the expected behavior?
One Started <agent-path> entry per unique subagent.
Additional information
Possible regression (inference, not a confirmed root cause): PR #35363, merged shortly before rust-v0.146.0, emits both ItemStarted and ItemCompleted for one SubAgentActivity in commit af7f6f4. The observed TUI behavior may result if both events are rendered as Started; this has not been confirmed by maintainers.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·