[BUG] #680 idle detector flags a session idle while a foreground subagent works
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #896 @pbean による — マージ済み
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start in src/bmad_loop/adapters/generic.py at _transcript_activity_key (around line 1750) and trace how the idle detector uses that activity key. Check how the Claude adapter locates session transcript directories; the issue proposes stat-only tracking of subagent *.jsonl files so profiles with usage_parser = "none" continue to work. Done means a growing subagent transcript prevents a false session-idle notice; run or add coverage for that behavior.
索引モデルが issue の本文から書いたものです。
説明
Description
The #680 idle detector keys on the main session transcript only (_transcript_activity_key, src/bmad_loop/adapters/generic.py:1750, unchanged on main @ d09a324a6). Claude Code writes a subagent's turns to its own file, ~/.claude/projects/<project>/<session-id>/subagents/agent-*.jsonl. While a foreground subagent works, the parent transcript does not change, so the detector journals session-idle for a session that is busy.
Steps to reproduce
- Claude adapter,
dev_stall_grace_s = 600. - Run a story whose dev session hands a slice to a foreground subagent that works for more than 600 s.
- Read the run journal.
Expected behavior
No session-idle while any subagent transcript of the session is growing.
Actual behavior
From a real run (bmad-loop 0.13.1):
{"kind": "session-idle", "task_id": "...-dev-1", "idle_s": 604.737, "threshold_s": 600.0, ...}
{"kind": "session-active", "task_id": "...-dev-1", "idle_s": 846.486, ...}
The session was running a foreground subagent for those 846 s. The notice is observability only, but it reads as a stuck session in the journal and the TUI.
Suggested fix
Fold the newest (mtime_ns, size) of <transcript dir>/<session-id>/subagents/*.jsonl into the activity key, stat-only, so usage_parser = "none" profiles keep working.
Environment
bmad-loop 0.13.1 (68645cb), Claude Code adapter, macOS.
- 主要言語
- Python
- スター
- 152
- フォーク
- 69
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 77
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bmad-code-org/bmad-loop のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
bmad-code-org/bmad-loop#835 ·
メンテナーはふだん 1 日以内に返信
-
area:adapters area:psmux bug P4
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bmad-code-org/bmad-loop#673 · コメント 8 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
bmad-code-org/bmad-loop#959 ·
メンテナーはふだん 1 日以内に返信
-
resume after an escalation pause leaves the story 'escalated' and resolve then refuses (stage: none)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
bmad-code-org/bmad-loop#958 ·
メンテナーはふだん 1 日以内に返信
-
TUI launch: two launches that create the control session at the same moment race, and the loser fails with "duplicate session" (tmux 3.4, psmux 3.4.0)対応中かも @dracic が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
bmad-code-org/bmad-loop#952 ·
メンテナーはふだん 1 日以内に返信
bmad-code-org/bmad-loop の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Graphify-Labs/graphify#4524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
topoteretes/cognee#5982 ·
メンテナーはふだん 1 日以内に返信
-
Patches of derivations with `__structuredAttrs` are ignored対応中かも @KiaraGrouwstra が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 81/100
nix-community/vulnix#184 ·
-
New Internshipオープンnew_internship
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
aws-samples/sample-per-model-bedrock#295 ·
メンテナーはふだん 1 日以内に返信