codex - 💡(How to fix) Fix Codex desktop terminal rendering artifact duplicates leading characters (git -> ggit) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17348Fetched 2026-04-11 06:17:13
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2unlabeled ×1

Code Example

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
RAW_BUFFERClick to expand / collapse

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.

extent analysis

TL;DR

Disable zsh-autosuggestions and zsh-syntax-highlighting plugins in the Codex desktop terminal to potentially resolve the rendering issue.

Guidance

  • Verify that disabling the plugins resolves the issue by commenting out the lines that source zsh-autosuggestions.zsh and zsh-syntax-highlighting.zsh in the ~/.zshrc file.
  • Test the terminal with the zsh -f option to see if it changes the behavior, as mentioned in the issue.
  • Check if the issue persists when using a different prompt, such as the default zsh prompt, instead of starship.
  • Investigate the iTerm integration script and its potential impact on the rendering issue.

Example

# Comment out the lines that source the plugins
# source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

Notes

The issue seems to be related to the rendering of the terminal, and disabling the plugins may resolve the issue. However, this may not be a permanent solution, and further investigation may be needed to determine the root cause.

Recommendation

Apply workaround: Disable zsh-autosuggestions and zsh-syntax-highlighting plugins in the Codex desktop terminal, as this may resolve the rendering issue and allow for further investigation into the root cause.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING