Since the in-app feedback tool is currently bugged and unusable, I am reporting a critical issue with the AI agent’s tools here.
The Bug:
When the AI uses the grep_search tool and specifies an absolute file path in the SearchPath parameter, the tool fails silently and consistently returns a false negative (0 results).
The Impact:
By default, the AI agent will use absolute file paths unless instructed otherwise. For those of us who do not write code manually and rely entirely on AI generation, this bug is devastating. The AI receives the fake “0 results”, falsely believes the target string or function does not exist, and starts hallucinating or destroying existing code. It completely breaks the autonomous workflow.
The Workaround:
The AI requires the following usage to work correctly for a specific file:
SearchPath: Must be set to the directory path only.Includes: Use this parameter to specify the target file name.
Immediate Mitigation:
Until this is patched, you must add a strict instruction in your GEMINI.md (or equivalent system prompt file) to force the AI to use the workaround.
I hope this helps others who are having their code broken by the AI, and I hope the dev team patches the grep_search wrapper soon.