Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] #680 idle detector flags a session idle while a foreground subagent works

クローズ
#858 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #896 @pbean による — マージ済み

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
observability

調査の方向性

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
  1. Claude adapter, dev_stall_grace_s = 600.
  2. Run a story whose dev session hands a slice to a foreground subagent that works for more than 600 s.
  3. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bmad-code-org/bmad-loop のほかの issue

bmad-code-org/bmad-loop の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。