You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: raw ANSI control sequences in Windows interactive CLI when cwd is a Git repo (`), but not when .git` is removed #23691
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Observed in the interactive CLI before normal use; model choice does not appear relevant.
What platform is your computer?
Windows (reproduced in native PowerShell and cmd.exe)
What issue are you seeing?
When I start the interactive Codex CLI inside a normal Git repository on Windows, the TUI prints raw ANSI / terminal control sequences such as `` and becomes unusable.
The issue appears to depend on the current directory being recognized as a Git repo:
If I run Codex in a folder with a .git directory, the interactive UI breaks.
If I move the .git directory out of that same folder, Codex starts rendering normally again.
This reproduces in at least two unrelated repositories, so it does not appear to be specific to one project.
What steps can reproduce the bug?
Use codex-cli 0.132.0 on Windows.
Open cmd.exe or PowerShell.
cd into a normal Git repository.
Run:
codex.cmd --no-alt-screen
Observe raw terminal control sequences such as and broken interactive rendering.
Move the repo's .git directory out of the folder and run the same command again.
Observe that the UI renders normally.
What is the actual behavior?
In Git repositories, the interactive TUI prints raw control sequences and becomes unusable. Removing .git from the same folder makes the problem disappear.
Additional information
Reproduced in multiple unrelated repos (for example, cloned Sentinel and RuoYi-Cloud).
git status works normally in the affected repos, so the repositories themselves do not appear corrupted.
--no-alt-screen does not fix the problem.
This looks more like a Windows interactive TUI / Git-repo detection / terminal refresh compatibility issue than a repository-content issue.
I was able to trace it to an issue with the old git version. Can you try running git update-git-for-windows or another method to update git to its latest version? It will fix the issue.
Feel free to reopen this issue if you are still having problems.
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon May 20, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
fcoury-oai commentedon May 22, 2026
I was able to trace it to an issue with the old git version. Can you try running git update-git-for-windows or another method to update git to its latest version? It will fix the issue.
Feel free to reopen this issue if you are still having problems.