Skip to content

"Repository snapshot encountered" warn contains incorrect information #6977

@moostoet

Description

@moostoet

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
956d3bf

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIagentIssues related to the core agent loop

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions