github / github/copilot-cli

Background subagent can remain running indefinitely after tool activity stops

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

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

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

説明

Describe the bug

A background review subagent remained marked as running long after observable activity stopped. The status stayed at 100 completed tool calls and zero completed turns while elapsed time continued increasing past 15 minutes. The parent session received no result and could not complete the workflow.

Affected version

1.0.83

Steps to reproduce the behavior
  1. Start a background general-purpose subagent for a final branch review.
  2. Allow it to perform tool calls.
  3. Observe the agent reach approximately 100 completed tool calls.
  4. Continue checking its status after several minutes.
  5. The agent remains running, with the tool-call count unchanged and no completed turn or result.
Expected behavior

The runtime should detect stalled subagents, surface the blocked tool or execution state, and either recover, fail with an actionable error, or enforce a bounded timeout. The parent should not wait indefinitely with no progress signal.

Additional context
  • Linux
  • Copilot CLI 1.0.83
  • Observed elapsed time: over 15 minutes
  • Status remained: running, 100 tool calls completed, 0 turns completed
  • Implementation and the full 78-test regression suite had already completed; the stalled operation was only a final read-only review.
  • No private repository content or session logs are attached.

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

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

はじめの一歩

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

調査の方向性

Linux 上でバックグラウンドの final-branch レビューを再現し、ツールのアクティビティが約 100 回の呼び出しに達した後も監視します。まず subagent のステータスと parent の待機動作を追跡します。検証には 78 テストからなる完全な回帰テストスイートを利用できます。作業が停止していることが検出され、実行可能な結果が示され、parent が無期限に待機し続けなくなれば完了です。

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

評価

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

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

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