Codex desktop terminal rendering artifact duplicates leading characters (git -> ggit)

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

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.406.31014 (1395)

What subscription do you have?

Enterprise

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

In the Codex desktop terminal, the command line sometimes renders extra/stale leading characters while typing/editing commands (for example git appears as ggit, or gh remains visually stuck). Commands execute correctly, so this appears to be a rendering/redraw mismatch. Does not reproduce in iTerm2 or VSCode with the same ~/.zshrc.

<img width="231" height="211" alt="Image" src="https://github.com/user-attachments/assets/36234a14-84a1-47fa-a2e1-94ca957c578b" />

What steps can reproduce the bug?

Reproduction
Open Codex desktop terminal.
Start zsh with standard ~/.zshrc (not zsh -f).
Type/edit short commands like git, gh, cat.
Backspace/clear/retype.
Observe stale/duplicated leading chars (ggit, ghnano, excat).

What is the expected behavior?

Rendered input should always match actual shell buffer.

Additional information

Shell: zsh (normal config reproduces; zsh -f changes behavior)
Prompt: starship
Plugins: zsh-autosuggestions, zsh-syntax-highlighting
iTerm integration script present (~/.iterm2_shell_integration.zsh) and tested with Codex-only disable
CODEX_HOME-gated attempts (disabled autosuggestions/highlighting in Codex) did not fully resolve
Not reproducible in iTerm2 or VSCode terminal with same .zshrc

eval "$(starship init zsh)"
if [[ -n "${CODEX_HOME}" ]]; then
  :
else
  source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
  source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi

Possibly related to #16687, #16170, #16575, #16306, but behavior differs: desktop renderer mismatch with correct command execution.

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

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

  • ##16170
  • ##16575
  • ##16687
  • ##16306

Powered by Codex Action

mluxtoncms · 4 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. #Each Cyrillic character appears duplicated while typing #16170 #Swedish characters (åäö) duplicate when typed in CLI input #16575 #Cursor jumps and flashes when deleting text in input field #16687 #Single Esc/Enter get duplicated in TUI, making undo unreliable #16306 _Powered by Codex Action_

I reviewed possible related reports: #16687, #16170, #16575, #16306.
I believe this is distinct: in my case (Codex desktop terminal), the problem is visual stale/duplicated leading characters while command execution remains correct, and it does not reproduce in iTerm2/VSCode with the same ~/.zshrc.

michaelw · 1 month ago

FWIW, this can be fixed by patching the ChatGPT app.

Before:

<img width="1295" height="41" alt="Image" src="https://github.com/user-attachments/assets/2b0c508c-6e6e-4444-bb23-be897b42a1ff" />

After:

<img width="1240" height="42" alt="Image" src="https://github.com/user-attachments/assets/3d14f766-5247-4966-bda5-d1ed5f6b6fbb" />