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

[BUG] session-start journals model "" when policy model is the CLI default

オープン
#859 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

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

調査の方向性

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
  1. Leave model = "" in .bmad-loop/policy.toml.
  2. Run any story.
  3. 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

環境構築

はじめの一歩

  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 を短くまとめたダイジェスト。