Skip to content

Conversation

@andrewphelpsj
Copy link

@andrewphelpsj andrewphelpsj commented Jan 14, 2026

What does this PR do?

Fixes #8307 by modifying the Grep tool so that an error is only returned if ripgrep's stdout is empty, in addition to checking the status code.

This might not be the solution you all want, since it doesn't enable the model to get the potentially useful warning messages out of the tool call.

How did you verify your code works?

Added some unit tests, and recreated the scenario here: https://opncd.ai/share/9YARWprF. Create a broken symlink, and then ask the model to grep in the root of the repo.

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@andrewphelpsj
Copy link
Author

Closed by #8612

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ripgrep causes Grep tool to fail in the presence of broken symlinks

1 participant