Commit graph

3 commits

Author SHA1 Message Date
reviewer
148d6116c1 fix(desktop): preserve report parity during fast loading 2026-07-22 01:43:24 +02:00
Resham Joshi
15a381b7d2
test: cli-emitters expects the title field sessions rows now carry (#789)
The #782 titles threading added title to the sessions JSON row shape but
missed this emitter test's key list; caught by the first full-suite run
since the merge.

Co-authored-by: reviewer <review@local>
2026-07-20 14:18:20 -07:00
iamtoruk
fc1920d4f1 feat(cli): add compare and sessions JSON emitters
compare --format json: list mode (aggregateModelStats for pickers) +
full mode via --model-a/--model-b, emitting
{period, modelA, modelB, metrics, categories, workingStyle}.
Reuses computeComparison/computeCategoryComparison/computeWorkingStyle/
scanSelfCorrections; TUI path unchanged.

sessions --format json: new src/sessions-report.ts, uncapped flat
SessionRow[] (id, project, provider, models, cost, tokens, turns,
duration) via aggregateSessions; table + json formats.

Enables the desktop app's Sessions + Compare screens (Phase 3b).
2026-07-11 12:16:45 -07:00