Search stuck and never finishes
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Describe the bug
I created a md to work around the issue, and it has the description
cat ~/.copilot/instructions/search-tool-workaround.instructions.md
Search / grep tool workaround
In this environment the built-in grep tool (and code-search tooling built on
it) can stall for minutes on the "Search" spinner, even though the underlying
ripgrep work completes in milliseconds. This is a tool-invocation-layer issue,
not a real search cost:
- Single-file ripgrep: ~2 ms
- Whole 70 GB / ~825k-file working tree: ~3.8 s
So the multi-minute "Search" hangs are NOT caused by ripgrep or repo size.
Guidance
- Prefer plain
grep/rgandview/cat/sedvia the bash tool for
searching file contents and reading files. These return in milliseconds. - Avoid the built-in
greptool here until the responsiveness bug is fixed. - Always scope searches to a specific path/file when possible
(e.g.grep -nE 'pattern' path/to/file).
Affected version
GitHub Copilot CLI 1.0.79
Steps to reproduce the behavior
everytime it needs to Search
Search "something" ....
which stuck forever
Expected behavior
No response
Additional context
No response
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Hänger in GitHub Copilot CLI 1.0.79 mit dem integrierten Search/grep-Tool zu reproduzieren, und vergleiche ihn dann mit den bash-basierten grep- oder rg-Befehlen, die in ~/.copilot/instructions/search-tool-workaround.instructions.md beschrieben sind. Verfolge die Aufrufebene von Search statt die Leistung von ripgrep. Erledigt ist die Aufgabe, wenn Suchvorgänge abgeschlossen werden, anstatt auf dem Search-Spinner zu verbleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100