github / github/copilot-cli

High CPU usage in copilot-cli

オープン
#4,415 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、sleep 550 のようなコマンドを使って GitHub Copilot CLI 1.0.78 で問題を再現し、その後コマンド待機パスを調査します。待機中も CLI が応答可能なままで、CPU を消費しなくなれば完了です。同じプロセスモニターと再現コマンドを使って結果を確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli, performance
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。