github / github/copilot-cli

Background subagent can remain running indefinitely after tool activity stops

未關閉
#4,850 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

triage
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
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. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

在 Linux 上重現背景執行的 final-branch review,並在工具活動達到約 100 次呼叫後持續監控。先追蹤 subagent 的狀態與 parent 的等待行為;完整的 78 項回歸測試套件可供驗證。偵測到停滯的工作、呈現可採取行動的結果,且 parent 不再無限期等待,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。