Background subagent start events deferred until parent task completes (1.0.83)
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ả
Observed behavior
On macOS arm64 with the installed @github/copilot 1.0.83 runtime, two background task calls returned handles immediately, but matching subagent.started events did not appear until approximately 14 minutes later, immediately after the parent called task_complete. The parent continued using tools during that interval.
Sanitized relative timeline
Times are relative to the first background task request; task-call IDs were correlated locally and are omitted here.
- T+0.000s / +0.001s: two task requests with mode=background.
- Handles returned within 11ms; subsequent read_agent responses reported running and zero completed turns.
- T+303.291s: two separately scoped synchronous task requests. Matching subagent.started events appeared within 23ms.
- T+570.272s: write_agent stop instructions sent to the background tasks; messages were queued, not cancellation.
- T+852.718s: parent task_complete called.
- T+852.793s / +852.795s: matching subagent.started events for the original background requests.
- First local work markers followed approximately 6s and 11s later. Both background tasks completed their original work, then processed the queued stop instructions.
Expected behavior
Background tasks should begin independently while the parent performs unrelated work, or expose a queued/deferred state rather than imply active execution. If parent-turn completion is a prerequisite, document and surface that constraint.
Reproduction outline (not yet reduced to a deterministic repro)
Launch two small background tasks that record a first-work timestamp; continue unrelated parent tool work; compare task submission, subagent.started, first-work marker and parent completion events. In the observed session both start events aligned within 77ms of parent completion.
Limits
This is event-level evidence of deferred dispatch, not proof of a particular scheduler defect. No dispatcher source was examined. Background and synchronous comparisons used different models, so they do not isolate model versus execution-mode effects. The background completion duration included the pre-start interval. No raw transcripts, source code, credentials or environment files are attached.
Potentially related lifecycle discussion: #4101, although that report concerns write_agent blocking rather than initial background task dispatch.
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
Bắt đầu với dàn ý tái hiện và so sánh task submission, subagent.started, first-work và parent completion events đối với các tác vụ chạy nền. Sau đó, điều tra đường đi của dispatcher hoặc lifecycle, sử dụng timeline và phần so sánh với tác vụ đồng bộ làm ngữ cảnh. Được xem là hoàn tất khi công việc chạy nền bắt đầu độc lập hoặc trạng thái trì hoãn và ràng buộc parent completion của nó được thể hiện rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github
- 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
- 45/100