Background subagent can remain running indefinitely after tool activity stops
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
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
- Start a background general-purpose subagent for a final branch review.
- Allow it to perform tool calls.
- Observe the agent reach approximately 100 completed tool calls.
- Continue checking its status after several minutes.
- 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện việc review final-branch chạy nền trên Linux và theo dõi nó sau khi hoạt động của tool đạt khoảng 100 lần gọi. Bắt đầu bằng cách theo dõi trạng thái của subagent và hành vi chờ của parent; bộ regression test đầy đủ gồm 78 test có sẵn để xác thực. Được xem là hoàn tất khi phát hiện công việc bị đình trệ, đưa ra một kết quả có thể thực hiện và parent không còn chờ vô thời hạn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100