"Repository snapshot encountered" warn contains incorrect information
What is the type of issue?
Documentation is incorrect
What is the issue?
Commit 956d3bfac6e111ac00380a9cc0c53583b2841d62 recently added a warning message for untracked directories:
"Repository snapshot encountered large untracked directories: {}. This can slow Codex; consider adding these paths to .gitignore or disabling undo in your config."
I got this warning and, consequently, wanted to disable undo in my config. However, the documentation does not mention undo anywhere. After some deeper digging I discovered this, found here:
ghost_commit | false | Experimental | Create a ghost commit each turn
Considering the commit itself adds a lot of code relating to ghost_commit, e.g. let options = CreateGhostCommitOptions::new(&repo_path);, it feels to me this is either a wrongly written warn (which would need to refer to ghost_commit instead), or that I'm still missing something.
Where did you find it?
https://github.com/openai/codex/blob/main/docs/config.md#feature-flags https://github.com/openai/codex/commit/956d3bfac6e111ac00380a9cc0c53583b2841d62
I have the same issue, want to disable this setting, and I cannot for the life of me manage to do this.
Trying to set ghost_commit = false under [features] did nothing.
I have the same issue, want to disable this setting, and I cannot for the life of me manage to do this.
Trying to set
ghost_commit = falseunder[features]did nothing.
If the documentation is correct this feature is already set to false by default, which makes me believe that it might be showing this warn even though the feature isn't enabled yet. Perhaps they're looking to enable it by default later down the line? I'm not sure.
Well I get that warning. And Codex in that project feels really really slow. Sadly I cannot do the .gitignore stuff for reasons. Looked into that first.
I have the same issue, but the folder it's complaining about is already .gitignore'd, tried adding it to the root .gitignore too, but it's still there.
Encountered this issue in a large Laravel project.
I received this warning:
Repository snapshot encountered large untracked directories: storage/clockwork (1269 files). This can slow Codex; consider adding these paths to .gitignore or disabling undo in your config.
Although this folder is already in .gitignore, the real problem was that because of this warning, Codex couldn't list or access any files in the project (even with the --dangerously-bypass-approvals-and-sandbox flag).
Cleaning out my storage/clockwork folder resolved the issue, and Codex was able to resume working on the project.
@tuxfamily, If you disable the undo, then you cannot ask codex to undo... which you probably want to be able to do, in case it writes incorrect code or didn't understand your prompt, causing it to make unintended changes. The issue appears to be a bug, it should honor the .gitignore. I have the same issue, I am getting a warning for a .gitignore'd directory.
I'm getting the warning for files that are already gitignored' (i.e. git status does not list them). But even so, I would be happy to remove the 'undo' functionality. I would never rely on it. I keep my code correctly separated between feature writing with AI so it's not too big of a deal to undo myself, anyway.
Same issue