High CPU usage in copilot-cli
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
When I run copilot cli, it's taking 100% of one of the CPUs, even though the only thing the copilot is doing is waiting for a sleep operation..
Shell Wait then recheck CI status
sleep 550; cd /home/matste/ [...]
PID USER PRI NI VIRT RES SHR S CPU%▽MEM% TIME+ Command
38098 matste 20 0 15.9G 726M 149M S 27.2 2.8 0:47.95 copilot
Affected version
GitHub Copilot CLI 1.0.78.
Steps to reproduce the behavior
Ask copilot to execute any command.
Expected behavior
How hard is it to implement a text-only program that doesn't do active waiting?
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, das Problem in GitHub Copilot CLI 1.0.78 mit einem Befehl wie sleep 550 zu reproduzieren, und untersuche anschließend den Pfad, in dem auf den Befehl gewartet wird. Als abgeschlossen gilt die Änderung, wenn die CLI responsiv bleibt, während des Wartens aber keine CPU mehr verbraucht; überprüfe das Ergebnis mit demselben Prozessmonitor und Reproduktionsbefehl.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli, performance
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100