Summary
When /codex:review collects working-tree context, it reads untracked files directly from disk.
If the repository contains a broken symlink or an unreadable untracked path, review context collection can throw
and abort the whole review.
Steps to reproduce
- Create a git repo with a clean initial commit.
- Add an untracked broken symlink, for example:
ln -s missing-target broken-link
- Run the review flow that collects working-tree context.
Actual behavior
The command crashes while trying to stat/read the untracked path.
Expected behavior
Broken symlinks or unreadable untracked files should be skipped and noted in the review context, instead of
failing the entire review.
Notes
The failure happens in untracked file handling during working-tree context collection.
A resilient fallback would keep the review running and mark the path as skipped.
Summary
When
/codex:reviewcollects working-tree context, it reads untracked files directly from disk.If the repository contains a broken symlink or an unreadable untracked path, review context collection can throw
and abort the whole review.
Steps to reproduce
Actual behavior
The command crashes while trying to stat/read the untracked path.
Expected behavior
Broken symlinks or unreadable untracked files should be skipped and noted in the review context, instead of
failing the entire review.
Notes
The failure happens in untracked file handling during working-tree context collection.
A resilient fallback would keep the review running and mark the path as skipped.