github / github/copilot-cli

Search stuck and never finishes

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

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

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

説明

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/rg and view/cat/sed via the bash tool for
    searching file contents and reading files. These return in milliseconds.
  • Avoid the built-in grep tool 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

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

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

はじめの一歩

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

調査の方向性

まず、組み込みの Search/grep ツールを使って GitHub Copilot CLI 1.0.79 でハングを再現し、その後、~/.copilot/instructions/search-tool-workaround.instructions.md に記載されている bash ベースの grep または rg コマンドと比較します。ripgrep のパフォーマンスではなく、Search の呼び出しレイヤーを追跡してください。検索が Search のスピナーに留まり続けるのではなく完了すれば、完了とします。

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

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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