Repository navigation
Conversation
…457) Adrián's IDE test of #323: a grep the agent ran through Bash showed the radar rings but no beacons, and the legend said "search: 0 matches". Only the Grep/Glob tools' `filenames` were read as hits. - shellCommandClassifier: searchHitsFromOutput reads the hits a shell search printed (grep -rn / rg / git grep `path:line:text`, -l and find/fd one path per line, a grep over one file), with `cd x &&` and Windows drives; counts and searches piped into something else add none. A grep's pattern is no longer taken for a file operand. - Claude Code: a Bash search's stdout names its hits; the Grep tool in content mode too (it lists no filenames). - Codex: a shell search's output names its hits. - Tests in agentFlowCore.test.cjs; test guide and CHANGELOG.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adrián · project thread
Closes #457 (bug from Adrián's manual test of #323, epic #319).
Cause
A search the agent ran through the shell (
grep -n "backend\.utils\.valida..."via Bash) showed the radar rings but no beacons, and the legend saidsearch: 0 matches: only the Grep/Glob tools'filenameswere read as hits, and the dotted pattern was taken for a file operand.What
shellCommandClassifier.ts:searchHitsFromOutputreads the hits a shell search printed:grep -rn/rg/git grep(path:line:text),-landfind/fd(one path per line), a grep over one file (only the lines). Handlescd x &&and Windows drives; counts (-c) and searches piped into something else add none. A grep's pattern is no longer a file operand.stdoutnames its hits; the Grep tool incontentmode too (it lists nofilenames).src/core/agent-flow), so the VS Code extension and the IDE both get it; the runtime already draws a beacon per matched building.Tests
npm testgreen. New cases intest/analysis/agentFlowCore.test.cjs: output parsing per command, the pattern-not-a-path rule, a Claude Code Bash grep, Grep content mode and a Codexrg.Docs
Test guide (search row), CHANGELOG.
Generated by Claude Code