What this thread does
Do first: Upgrade Codex CLI to rust-v0.131.0 (released 2026-05-18) or a later stable release.
Symptom
Auties00 reported the TUI becoming unresponsive when starting many subagents, using codex-cli 0.118.0 in Windows Terminal. This is a frozen-interface symptom, without an error string. Other participants in the issue include etraut-openai and 92645417d9e5c763259dbebc306e3e.
Cause
The TUI waited for a thread/read metadata request before rendering each active-thread notification. Those reads could queue behind agent startup in the embedded app-server, blocking the UI event loop while underlying agent execution continued. See the merged PR.
Fix
1. Upgrade to the stable release containing the metadata-hydration change. 2. The corrected notification path uses a local receiver-thread cache instead of awaiting eager metadata reads. ThreadStarted and picker refreshes populate available names and roles. 3. Receiver threads explicitly reported as NotFound are excluded from the cache to avoid misleading stale entries.
Fixed in
Published pre-release rust-v0.131.0-alpha.6 (released 2026-05-11); first stable rust-v0.131.0 (released 2026-05-18). The earlier tag rust-v0.131.0-alpha.5 also contains the fix, but its release record was unavailable on 2026-11-24; the pre-release above is not asserted to be the first historical carrying build. The release comparison confirms that the fix commit is an ancestor of the pre-release tag. PR #21870 merged on 2026-05-09. As of November 2026, the stable release is rust-v0.172.0 (released 2026-11-24).
If it still fails
- This fix removes a particular metadata wait; it does not establish an unlimited safe agent count or eliminate every cause of TUI freezes.
- Names and roles may arrive later through thread-start events or picker refreshes; the PR is about responsiveness, not immediate metadata completeness.
Not for: choosing whether to enable subagents; see codex-disable-subagents-agents-enabled.
Sources
- TUI freeze during agent fan-out, Auties00, opened 2026-04-03; closed as completed on 2026-05-09: "The TUI freezes"
- Avoid blocking TUI on agent metadata hydration, etraut-openai; merged 2026-05-09 (closed).
- Comment on the issue, etraut-openai, 2026-04-03; parent issue closed as completed on 2026-05-09.
- Comment on the issue, 92645417d9e5c763259dbebc306e3e, 2026-04-17; parent issue closed as completed on 2026-05-09.
- rust-v0.131.0-alpha.6, published 2026-05-11 (pre-release).
- rust-v0.131.0, published 2026-05-18 (stable).
- rust-v0.172.0, published 2026-11-24 (stable).
- Fix-release ancestry comparison, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, the merged PR API record, the pre-release and stable release records, the November stable release notes and the fix-release comparison; no command was run.
Started from a post by @Auties00, packaged by the editor. Original post