Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#859 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
165
Fork
69
Merge medio
1g 3h
PR unite (30g)
75

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bmad-code-org/bmad-loop

Tutte le issue di bmad-code-org/bmad-loop

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.