Agents are always closed

Resolved 💬 6 comments Opened Mar 27, 2026 by Dovlan1990 Closed Mar 28, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

codex-cli 0.117.0

What subscription do you have?

pro

Which model were you using?

gpt-5.4

What platform is your computer?

Ubuntu 24.04.4 LTS

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

_No response_

What issue are you seeing?

After switching agent branches, I get a notification in chat that the agent is closed, even though it's still running. Furthermore, in the agent list, all agents are always grayed out, as if they're all closed, but that's not the case.

<img width="963" height="230" alt="Image" src="https://github.com/user-attachments/assets/91fb196c-837e-4f5f-ae05-f015b090a080" />

<img width="1030" height="198" alt="Image" src="https://github.com/user-attachments/assets/c8745794-b216-4822-a563-45fa6f3d5982" />

What steps can reproduce the bug?

Uploaded thread: 019d2ec6-6d7b-7270-96dd-fd07d145f4f2

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

6 Comments

github-actions[bot] contributor · 3 months ago

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

  • #14866
  • #15306

Powered by Codex Action

winoros · 3 months ago

I observed the same behavior.

etraut-openai contributor · 3 months ago

Does this appear to be a regression in 0.117.0? Can you repro the problem if you downgrade to 0.116.0?

winoros · 3 months ago
Does this appear to be a regression in 0.117.0? Can you repro the problem if you downgrade to 0.116.0?

@etraut-openai
116 has the same problem. But I enabled tui-app-server in 0.116

etraut-openai contributor · 3 months ago

OK, that's a good clue. If you disable tui_app_server in either 0.116 or 0.117, does the problem go away? If so, then we have a clear sign of a regression due to the tui_app_server feature.

etraut-openai contributor · 3 months ago

Thanks for the bug report. This will be addressed in the next release.