TUI Rendering overwriting everything

Open 💬 5 comments Opened Mar 6, 2026 by doublemover
💡 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.111.0

What subscription do you have?

Pro

Which model were you using?

_No response_

What platform is your computer?

_No response_

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

_No response_

What issue are you seeing?

Been seeing this since before themes were added, this is a very mild case that I only caught because permissions are still broken. It is often much worse, especially when there are sub-agents in play and they flub powershell commands causing the resulting prompts to also overwrite TUI text.

Often times the interface gets so mangled that you cannot see anything at all, pressing / to pull up the autocomplete for commands will at least clear enough to continue working, unless there's a permissions prompt pending, then you can play codex roulette and press y or a

A /redraw command would be nice but it wouldn't help in the pending perm prompt case. Perhaps some sort of shortcut key?

<img width="520" height="221" alt="Image" src="https://github.com/user-attachments/assets/e3c730ad-b5ec-4169-8ac7-ab591fa52158" />

What steps can reproduce the bug?

Use codex normally

What is the expected behavior?

It doesn't do this

Additional information

“In the midst of chaos, there is also opportunity” - Sun Tzu

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 5 months ago

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

  • #12457
  • #12923
  • #13443
  • #12829

Powered by Codex Action

etraut-openai contributor · 5 months ago

Do you suspect this is a regression? If so, do you know which version this started to appear?

doublemover · 5 months ago

This likely encompasses several bugs. Some of it probably started to regress sometime in feburary around the time themes were added?

When the main agent or a sub agent flubs a PS command in a way that generates prompts like path[n]: would be the biggest thing to handle.

The next biggest is likely caused by not correctly keeping track of the height of queued commands.

The rate at which I can reproduce this is extremely limited while the permissions bug persists (and started happening again in the thread I provided in the other report, it sat doing nothing overnight)

Assorted screenshots

<img width="197" height="79" alt="Image" src="https://github.com/user-attachments/assets/ecfda2a9-1315-4713-92ef-1148a6887538" />
<br />
<img width="615" height="380" alt="Image" src="https://github.com/user-attachments/assets/be6b3c55-51be-4c4b-9828-474c8ac21641" />
<br />
<img width="143" height="52" alt="Image" src="https://github.com/user-attachments/assets/12ecdac8-b0db-4cd7-90ae-98b1a79f58b9" />

Good example of when the main agent flubs powershell cmds
<img width="712" height="164" alt="Image" src="https://github.com/user-attachments/assets/ee5bda80-3b8e-4cd7-aad9-6ab9086a6e50" />

To be clear this doesn't matter to me at all for as long as the permissions issue persists

<img width="342" height="98" alt="Image" src="https://github.com/user-attachments/assets/69894cf6-b0ed-4b22-b3a0-267d11ca9fa7" />

Great example of a prompt I couldn't see until I pressed up/down

<img width="551" height="389" alt="Image" src="https://github.com/user-attachments/assets/c462237f-43a9-4ff7-be19-3ece72a39925" />

ifokeev · 5 months ago

Yeah it's regression. Started from 0.111 probably. Facing it in Termius right now

etraut-openai contributor · 4 months ago

Are you still seeing this with TUI 0.118.0? We've made significant changes in the TUI since this bug was initially reported.