Shipped `rg` version as part of npm package is outdated and contains bugs
What version of Codex CLI is running?
codex-cli 0.101.0
What subscription do you have?
ChatGPT Pro
Which model were you using?
gpt-5.3-codex
What platform is your computer?
Linux 6.17.0-12-generic x86_64 unknown
What terminal emulator and version are you using (if applicable)?
GNOME Terminal
What issue are you seeing?
Codex finds incorrect search results that bloat the context when using rg
What steps can reproduce the bug?
In my case:
- Minified js files in
a/b/c/mini.js - .gitignore in root contains `/a//c/**
- Codex searches something with a sub directory specified (e.g.
rg -n 'hello' a/) rgshows results from the minified file that might be huge blobs of garbage
What is the expected behavior?
rg should not show these results. Updating to rg version 15.1.0 fixes this.
The 15.0.0 release specifically mentions:
Several bugs around gitignore matching have been fixed. This includes
a commonly reported bug related to applying gitignore rules from parent
directories.
Additional information
The currently shipped rg version is from Sep 9, 2024 and should be updated. There also doesn't seem to be a way to disable the internally shipped version of the CLI tools. Currently, I manually symlinked the internal tool to my real rg installation, which will obviously break with the next update.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗