{"record":{"id":"a7a658fbdbe33976","repo":"openai/codex","slug":"failed-to-process-path-inside-worktree","errorCode":null,"errorMessage":"failed to process path inside worktree","messagePattern":"failed to process path inside worktree","errorType":"exception","errorClass":"GitToolingError","httpStatus":null,"severity":"error","filePath":"codex-rs/git-utils/src/errors.rs","lineNumber":29,"sourceCode":"    #[error(\"git command `{command}` failed with status {status}: {stderr}\")]\n    GitCommand {\n        command: String,\n        status: ExitStatus,\n        stderr: String,\n    },\n    #[error(\"git command `{command}` produced non-UTF-8 output\")]\n    GitOutputUtf8 {\n        command: String,\n        #[source]\n        source: FromUtf8Error,\n    },\n    #[error(\"{path:?} is not a git repository\")]\n    NotAGitRepository { path: PathBuf },\n    #[error(\"path {path:?} must be relative to the repository root\")]\n    NonRelativePath { path: PathBuf },\n    #[error(\"path {path:?} escapes the repository root\")]\n    PathEscapesRepository { path: PathBuf },\n    #[error(\"failed to process path inside worktree\")]\n    PathPrefix(#[from] std::path::StripPrefixError),\n    #[error(transparent)]\n    Walkdir(#[from] WalkdirError),\n    #[error(transparent)]\n    Io(#[from] std::io::Error),\n}\n","sourceCodeStart":11,"sourceCodeEnd":36,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/git-utils/src/errors.rs#L11-L36","documentation":"A generic thiserror variant in git-utils covering path operations inside a git worktree that failed for an unspecified reason (lookup, traversal, or worktree metadata checks); the surrounding git operation aborts because the path's worktree relationship could not be established.","triggerScenarios":"Thrown at codex-rs/git-utils/src/errors.rs:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the path is actually inside the worktree and not a stale linked-worktree reference","Run `git worktree list` and `git worktree prune` to clean up broken worktree entries","Re-clone or repair the repository if the worktree metadata is corrupted"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}