codex icon indicating copy to clipboard operation
codex copied to clipboard

Wrong .gitignore and message

Open cvjxendra opened this issue 3 weeks ago • 5 comments

What version of Codex is running?

0.63.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.1-codex-max high

What platform is your computer?

WSL

What issue are you seeing?

Codex is showing a wrong message: "⚠ Repository snapshot encountered large untracked directories: censo/DCU (440 files), 32/DCU (337 files), censokbd/DCU (311 files), 1 more. This can slow Codex; consider adding these paths to .gitignore or disabling undo in your config."

It's wrong because I have this directories in .gitignore as first lines:

censo/DCU 32/DCU censokbd/DCU

What steps can reproduce the bug?

Uploaded thread: 019aca6e-8253-7372-be5e-58181e61e4ba

Just execute any command on codex will display this message.

What is the expected behavior?

I expect that codex will not display this wrong message.

Additional information

No response

cvjxendra avatar Nov 28 '25 12:11 cvjxendra

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

  • #7313
  • #.33
  • #7067

Powered by Codex Action

github-actions[bot] avatar Nov 28 '25 12:11 github-actions[bot]

Thanks for the bug report.

Is your .gitignore in a subdirectory? If so, then this is a duplicate of #7313.

etraut-openai avatar Nov 28 '25 17:11 etraut-openai

@etraut-openai

I can confirm the problem (WSL / current Codex version 0.63.0). Even with a clean index and .gitignore in root.

git rm -r --cached . && git add . && git commit -m "Reapply .gitignore and clean index"

.gitignore in root:
/test123/generated/*.html
/wp-includes/*

=> Nevertheless, this message:

⚠ Repository snapshot encountered large untracked directories: test123/generated/ (454 files), wp- includes (244 files). This can slow Codex; consider adding these paths to .gitignore or disabling undo in your config.

See also https://github.com/openai/codex/issues/7067

wbdb avatar Nov 28 '25 22:11 wbdb

Is your .gitignore in a subdirectory? If so, then this is a duplicate of #7313.

It's a file in root this repository.

cvjxendra avatar Dec 05 '25 17:12 cvjxendra

I'm having the same issue on WSL with a repo that lives under the /mnt/... directory. It's a VERY large repo. Smaller repos don't show this problem.

Also it says "or disabling undo in your config." but I see no disabling undo options.

dpupek avatar Dec 12 '25 18:12 dpupek