mirror of
https://github.com/openai/codex.git
synced 2026-11-12 21:20:34 +00:00
## Why Repeated or nested search roots can cause the same path to consume multiple result slots and inflate the total match count. ## What changed Skip duplicate walk roots and deduplicate paths within overlapping subtrees before sending them to the matcher. Keep separate walks for nested roots so their ignore rules can still expose different entries. ## Testing Add a regression test covering repeated parent and child roots in both orders, verifying that two distinct matching files fill a two-result limit and produce a total match count of two. GitOrigin-RevId: 86483e572cb3d4dd69ec335fc2d27916301e1332