s17: IDLE teammates cannot resume their own in-progress tasks
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 84/100
Hướng nghiên cứu
Bắt đầu trong s17_autonomous_agents/code.py bằng cách đọc idle_poll(name, ...) và scan_unclaimed_tasks(). Tái hiện đường đi IDLE với một tác vụ in_progress thuộc sở hữu của nó và một tác vụ pending khác, sau đó xác minh hành vi hồi quy được mô tả: teammate tiếp tục tác vụ của mình, quay lại WORK, chèn một resume message và để tác vụ pending không bị nhận.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug
In the teaching implementation of s17_autonomous_agents/code.py, a teammate can leave tasks it already owns stuck in in_progress and then exit after the 60-second IDLE timeout.
Cause
idle_poll(name, ...) only calls scan_unclaimed_tasks(). That scan accepts only tasks that are:
status == "pending"- unowned
- dependency-ready
It never looks for tasks with status == "in_progress" and owner == name.
Therefore, after a WORK phase ends without a tool_use response (for example, the model returns ordinary text before it has called complete_task), the outer loop enters IDLE. The teammate cannot rediscover its own unfinished task, waits for IDLE_TIMEOUT = 60, sends a final summary, and exits. The task remains owned and in_progress.
Reproduction
- Create a pending task and start a teammate.
- Let the teammate claim the task but end a WORK phase before marking it complete.
- Observe that the task is still
in_progresswith that teammate as owner. - The teammate polls for 60 seconds, finds no unclaimed work, and exits instead of resuming its owned task.
Expected behavior
During IDLE, after handling inbox messages and before claiming new work, a teammate should resume one of its own in_progress tasks. It should return to WORK with that task injected into its messages, rather than timing out.
Minimal fix
Add a helper such as scan_resumable_tasks(owner) to find in_progress tasks owned by the current teammate. In idle_poll, prioritize one resumable task before scan_unclaimed_tasks() and append a message like:
{"role": "user", "content": "<resume-task>Task ...</resume-task>"}
I verified this with a regression test: when Alice owns an in_progress task and another pending task exists, idle_poll("alice", ...) returns "work", injects the owned task, and leaves the pending task unclaimed.
This is a teaching-version bug report; it is not a claim about the production Claude Code scheduler.
- Ngôn ngữ chính
- Python
- Star
- 79k
- Fork
- 12.6k
- Merge trung bình
- 8 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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.
Issue khác của shareAI-lab/learn-claude-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
shareAI-lab/learn-claude-code#583 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
shareAI-lab/learn-claude-code#528 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
s09: select_relevant_memories 的 "recent" 拼接顺序与切片不合理,不是真正的最近 2k 上下文Có thể đã có người làm @siri666942 đã nhận 77 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
shareAI-lab/learn-claude-code#517 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
plan_approval_response 不会唤醒 idle teammateCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
shareAI-lab/learn-claude-code#455 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 52/100
shareAI-lab/learn-claude-code#605 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của shareAI-lab/learn-claude-code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
microsoft/agent-lightning#661 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area/profiles comp/cli P3 type/feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
NousResearch/hermes-agent#146372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] OpenAI-compatible embedding model alias breaks embedder constructionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistenciesCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
GeoSeries scale and skew tests fail with pytest 9.2.0Có thể đã có người làm @jiayuasu đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày