[BUG] session-start journals model "" when policy model is the CLI default
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start in src/bmad_loop/engine.py at the three session-start journal call sites around lines 8062, 8123, and 8202, then trace how the Claude Code adapter exposes session or transcript data. Check whether the SessionStart hook input or the first assistant transcript turn provides the CLI-selected model when cfg.model is empty. Done means the journal records that model instead of an empty string while preserving configured-model behavior.
索引モデルが issue の本文から書いたものです。
説明
Description
session-start journals model: cfg.model (src/bmad_loop/engine.py, three call sites around lines 8062, 8123, 8202 in 0.13.1). With the documented default model = "" ("empty = CLI default"), every session-start records "model": "". Token cost in the journal then cannot be attributed to a model.
Steps to reproduce
- Leave
model = ""in.bmad-loop/policy.toml. - Run any story.
grep session-start .bmad-loop/runs/<run>/journal.jsonl.
Expected behavior
The model the CLI actually used.
Actual behavior
{"kind": "session-start", ..., "adapter": "claude", "model": "", ...} on every session.
Suggested fix
When cfg.model is empty, journal the model the CLI reports: for Claude Code, the SessionStart hook input's model field, or message.model of the first assistant turn in the transcript. Our workaround reads the transcript after the run, which the orchestrator is better placed to do.
Environment
bmad-loop 0.13.1 (68645cb), Claude Code adapter, macOS.
- 主要言語
- Python
- スター
- 146
- フォーク
- 68
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 48
環境構築
- 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 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 52/100
bmad-code-org/bmad-loop#868 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
bmad-code-org/bmad-loop#865 ·
メンテナーはふだん 1 日以内に返信
-
ctl-window prune reads an unavailable multiplexer backend as "no candidates"対応中かも @dracic が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
bmad-code-org/bmad-loop#864 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
bmad-code-org/bmad-loop の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mishraprafful/multihull#150 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
python-caldav/caldav#735 ·
メンテナーはふだん 1 日以内に返信
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mealie-recipes/mealie#8682 ·
メンテナーはふだん 1 日以内に返信
-
good first issue lane:repo
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100