Repository navigation
Fix filename-only code_search results - #1394
yolandaycao wants to merge 2 commits into
Conversation
|
Good catch — when The execution is where I'd push back. Consider a simpler, more robust approach: rather than statically predicting rg's output mode by re-parsing the flag array, sniff the actual first bytes of stdout (JSON lines start with Also worth double-checking: Right problem, but I'd want the flag-classification logic replaced or heavily tested before this goes in as-is. |
|
Marking this stale - there has been no activity here for 29 days. It will close in 7 days unless someone comments. This is backlog upkeep, not a verdict on the pull request. A single comment keeps it open, and anything closed this way can be reopened. |
code_search -lwas parsing filenames as JSON and reporting zero matches. Parse filename output directly while preserving-land the existing limits. Non-UTF-8 paths use base64, matching ripgrep's JSON output, so distinct filenames stay distinct.All 33 existing tests and 14 additional local checks pass. SDK typecheck still has the same 6 existing errors as
main.