github / github/copilot-cli

Copilot TUI hogs CPU

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

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

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

説明

Describe the bug

When I open copilot TUI, it hogs one CPU (~6-7% on a 16 core machine).

After I run a prompt, that number multiplies to e.g. 2, 3 or 4 CPUs hogged while the TUI sits idle.

Affected version

GitHub Copilot CLI 1.0.83.

Steps to reproduce the behavior
  1. start copilot TUI, observe CPU usage (sometimes i need to type a bit in the prompt box for the issue to appear)
  2. run a prompt or two, observe CPU usage
Expected behavior

copilot TUI CPU usage is negligible while the program sits idle.

Additional context

Ubuntu 24.04, x86_64, GitHub Copilot CLI 1.0.83..

Logs below. I opened a session, typed in the prompt box (already 1 CPU hogged at that point), then gave a plan command. after the plan.md was written and the TUI was idle, it used 3-4 CPUs.

process-1788769402724-57168.tar.gz

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

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

はじめの一歩

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

調査の方向性

Ubuntu 24.04 上で GitHub Copilot CLI 1.0.83 を使って報告を再現し、まずアイドル状態の TUI を観察してから、1 つまたは 2 つのプロンプトを実行します。提供された process-1788769402724-57168.tar.gz のログを調べ、プロンプトの前後で CPU 使用率を比較します。TUI を開いてプロンプトを使用した後、アイドル状態の TUI の CPU 使用率が無視できる程度であれば完了です。

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

評価

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

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

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