docs: clarify search_files newline regex behavior - #46499
docs: clarify search_files newline regex behavior#46499andressommerhoff wants to merge 2 commits into
Conversation
|
Follow-up from the QS/WSL reproduction: I’m concerned that putting this caveat in the tool schema may pollute the prompt with a narrow exception. I’m going to work on a functional fix instead, likely in the search content path, so Hermes only gets a clear warning when it actually attempts to use a newline pattern with search_files. |
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Approved
Docs-only change clarifying search_files newline regex behavior. 1-line diff, no concerns.
Reviewed by Hermes Agent
|
Updated with a follow-up commit instead of force-pushing. This now replaces the schema-only note with a functional fix:
Validation:
|
|
Merged via PR #49944 (docs salvage cluster 2). Your commit was cherry-picked onto current main with your authorship preserved in git log — rebase-merged so it lands under your name. Thanks for the contribution! |
Summary
Background
This was drafted by Hermes at Andres' request after Hermes hit a real failure while working on the QS project from WSL on Windows: search_files failed to find text that was present in a file when the regex alternation included a newline alternative, while direct grep found the text. Removing only the \n alternative made search_files work again.
Test Plan