Multiple sub-agents + typing randomly breaks TUI

Open 💬 2 comments Opened May 5, 2026 by runfence
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

v0.128.0

What subscription do you have?

Pro

Which model were you using?

irrelevant

What platform is your computer?

Windows

What terminal emulator and version are you using (if applicable)?

Windows Terminal

What issue are you seeing?

Codex stopped reacting to any input and updating output in the middle of long multi-agents flow. The cursor is blinking but nothing else works. I can see the progress by resuming the same session in another instance but I it doesn't show sub-agents.
Similar issue happened to me several times previously when I switch to sub-agent, then tried to switch back, started typing "/ag" and tui was blocked the same way.

It doesn't matter how long I wait, it just stays this way forever.

What steps can reproduce the bug?

It just happens randomly. I'm certain that it's threading synchronization issue. It only happens when I run 4+ sub-agents in parallel. Probably it's easier to reproduce if you run 10+ and keep actively switching between them and typing in the main context.

Uploaded thread: 019df509-ba14-7320-97b7-a5e14eb4f5a2

What is the expected behavior?

TUI keeps working without hanging

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #20777

Powered by Codex Action

runfence · 3 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. * Codex CLI TUI can remain stuck after completed turn when in-process notification queue is full on Windows #20777 _Powered by Codex Action_

Not duplicate. In this issue TUI is blocked completely and doesn't accept any input. In the referenced issue only final response is not rendered.