github / github/copilot-cli

Copilot TUI hogs CPU

未关闭
#4,750 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

area:terminal-rendering
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Ubuntu 24.04 上使用 GitHub Copilot CLI 1.0.83 重现该报告,先观察空闲的 TUI,然后运行一个或两个 prompt。检查提供的 process-1788769402724-57168.tar.gz 日志,并比较 prompt 前后的 CPU 使用率。当打开并使用 prompt 后,空闲 TUI 的 CPU 使用率可以忽略不计时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
github, shell
领域
cli, operating-systems, performance
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。