Background task results may be lost when agent loop exits early
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず s08_background_tasks.py を読み、pull ベースの _notification_queue と、エージェントループにおける stop_reason の処理に注目してください。バックグラウンドの npm テストシーケンスを再現し、結果がいつキューに追加され、いつ取り出されるかを追跡してください。完了とは、早期終了のケースで保留中のタスク結果を届ける経路が検証済みであることを意味します。
索引モデルが issue の本文から書いたものです。
説明
In s08_background_tasks.py, background task results are delivered via a pull-based notification queue that is only drained before each LLM
call. However, if the LLM decides it has no more work to do (i.e., stop_reason != "tool_use"), the agent loop exits immediately, and any
pending background task results remain in the queue and are never delivered.
Steps to Reproduce
- Ask the agent to run a long-running command in background:
User: "Run npm test in the background" - Agent calls background_run("npm test") and receives a task_id
- Agent responds with something like "OK, the test is running in the background"
- LLM returns with stop_reason = "end_turn" (no tool calls)
- Agent loop exits
- Background task completes and enqueues result to _notification_queue
- Result is never delivered since the loop has already exited
- 主要言語
- Python
- スター
- 79k
- フォーク
- 12.6k
- 平均マージ
- 8日 11時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
shareAI-lab/learn-claude-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
shareAI-lab/learn-claude-code#583 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
shareAI-lab/learn-claude-code#528 ·
メンテナーはふだん 1 日以内に返信
-
s17: IDLE teammates cannot resume their own in-progress tasks対応中かも @hichipli が 59 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
shareAI-lab/learn-claude-code#519 ·
メンテナーはふだん 1 日以内に返信
-
s09: select_relevant_memories 的 "recent" 拼接顺序与切片不合理,不是真正的最近 2k 上下文対応中かも @siri666942 が 76 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
shareAI-lab/learn-claude-code#517 ·
メンテナーはふだん 1 日以内に返信
-
plan_approval_response 不会唤醒 idle teammate再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
shareAI-lab/learn-claude-code#455 ·
メンテナーはふだん 1 日以内に返信
shareAI-lab/learn-claude-code の issue をすべて見る
似ている issue
-
test-failure
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
teramoby/speedle-plus#129 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
btclib-org/btclib-ecc#404 ·
-
verify: just verify runs tools/verify_agents_imports.py (the recipe line was only read, not run)オープンneeds-verification
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
EchoTools/nevr-runtime#1322 ·
メンテナーはふだん 1 日以内に返信
-
changelog investigate
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
ramnes/notion-sdk-py#430 ·
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
hyeonjoong/debussy#56 ·