GPT-5 passing incorrect flags to ripgrep

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When using GPT-5, it frequently attempts to make ripgrep commands with a flag --cursor-ignore. Obviously ripgrep throws an error since this is not a valid flag. GPT-5 seems to still produce good output in lieu of this; it seems like it uses alternative methods to search the codebase.

But this still leaves me confused and wondering if I could get better results if GPT-5 was able to use ripgrep correctly. Below is the only error text I can obtain from the Cursor agent chat:

Search failed: rg: unrecognized flag --cursor-ignore (exit 2: ...)

Is this an error others are noticing?

Steps to Reproduce

Unable to reproduce consistently. Generally arises by asking gpt-5 to perform a complex task. Due to the complexity, it will attempt to run some searches on the codebase.

Expected Behavior

gpt-5 passes correct flags to ripgrep.

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Linux x64 6.16.0-arch2-1

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.