Skip to content

Shipped rg version as part of npm package is outdated and contains bugs #12002

Closed

Description

@tth05

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/)
  • rg shows 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.

Activity

  1. added
    bug
    on Feb 17, 2026
  2. added
    CLI
    on Feb 17, 2026
  3. etraut-openai commented on Feb 17, 2026

    @etraut-openai
    Contributor

    Thanks for the bug report. This will be addressed in the next release.

  4. tth05 commented on Feb 17, 2026

    @tth05
    Author

    Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions