Random characters in TUI

Resolved 💬 14 comments Opened Oct 8, 2025 by distributedstatemachine Closed Oct 31, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.45.0

Which model were you using?

all

What platform is your computer?

Linux 6.8.0-64-generic x86_64 x86_64

What steps can reproduce the bug?

Start Codex

<img width="1070" height="382" alt="Image" src="https://github.com/user-attachments/assets/8e943614-fb8e-4c0e-a7ff-7d657cb0e13d" />

What is the expected behavior?

start codex

no ansi print out

What do you see instead?

Ansi print outs on screen

Additional information

I have heard of a friend having this when ssh-ing into a remote server, which is similar to my set up. This worked fine before i upgraded

View original on GitHub ↗

14 Comments

github-actions[bot] contributor · 9 months ago

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

  • #4759

Powered by Codex Action

kvinwang · 9 months ago

The issue persists on latest master 26f7c468.

mahmoud1973 · 9 months ago

The issue persists on latest 0.47

khaled-wsa · 9 months ago

Same here in both linux & macOS .. on latest 0.47

senkushal · 9 months ago

Same issue

foreverpiano · 8 months ago

same issue

mahmoud1973 · 8 months ago

The issue still persists in version 0.48. Any updates from the dev team on this annoying issue would be appreciated. Is it really that hard to fix?

info-wordcab · 8 months ago

Persists in 0.49

mahmoud1973 · 8 months ago

I finally managed to fix this annoying issue by using tmux.

Start a tmux session:
tmux new -s codex

You detach (Ctrl+b then d) and log out. The process keeps running inside tmux even if your SSH is gone.

Later, you can reconnect with ssh and run:
tmux attach -t codex
and you’re back in the same terminal

info-wordcab · 8 months ago
I finally managed to fix this annoying issue by using tmux. Start a tmux session: tmux new -s codex You detach (Ctrl+b then d) and log out. The process keeps running inside tmux even if your SSH is gone. Later, you can reconnect with ssh and run: tmux attach -t codex and you’re back in the same terminal

Same here on a remote Azure server - only using tmux helped.

o-sdn-o · 8 months ago

@nornagon-openai @etraut-openai @joshka-oai Could the bug https://github.com/PowerShell/openssh-portable/pull/806#issue-3483834510 be the cause of this issue (in case of sshing from Windows to Linux)?

lidj22 · 4 months ago

This is still a problem on v0.104.0 in macos iterm.

<img width="1506" height="199" alt="Image" src="https://github.com/user-attachments/assets/a80d003d-a7ee-4bd2-a83c-72839c8dc4c2" />

Codex has a lot of really strong points, but this bug really kills usability for me.

etraut-openai contributor · 4 months ago

@lidj22, this bug was fixed a long time ago. If you're seeing a similar behavior, it's likely a new or different problem. Please open a new bug report and provide as many repro steps or other details as you can. Thanks!

lidj22 · 4 months ago

@etraut-openai thanks for the response! I will report details on this issue when available.