codeburn/app/renderer
Resham Joshi e42f1e5db3
Explain why one session cost what it did (CLI + app session view) (#1645)
* feat(sessions): explain why one session cost what it did

`codeburn sessions --id <id> --why` reads one Claude Code transcript on
demand and returns where the money went: a verdict, findings ranked by
dollars, spend by prompt with helper (sub-agent) cost stacked, and every
prompt's model calls and tool steps with timing, cost parts and step detail.
Money comes from the parser's own dedupe, turn grouping and calculateCost,
so the session total matches its `sessions` row.

The desktop app opens this as a focused session view when a Claude Code
session is clicked. Transcript content is read on demand only: never cached,
never routed through serve's output memo, never synced or sent in telemetry.

* fix(sessions): audit fixes for the session cost view

Recovery after a failed step stays inside its prompt; neutral note when the
view and the row differ (forked/resumed transcripts); starting-context
estimate compares against the cached prefix; local dates with the end date
when the session spans days; idle gaps that end with a helper reporting back
say so; savings are the difference of the shown figures; singular counts;
more secret patterns (sk_live_/sk_test_, aws_secret_access_key, URL
credentials); a note when the prompt count differs from the row's turns.
2026-10-06 11:49:58 +02:00
..
assets chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
components Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
hooks 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
i18n Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
lib Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
public Wire drill-through into the desktop app: entries, chips, contributions, drawer, history 2026-09-12 12:22:19 -07:00
sections Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
styles Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
test desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
App.renderChurn.test.tsx perf(app): stop the per-second shell re-render and halve the splash video (#1352) 2026-09-17 13:05:43 +02:00
App.test.tsx fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
App.tsx 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
index.html harden(app): Electron security + spawn efficiency batch 2026-07-16 01:57:44 -07:00
main.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
vite-env.d.ts feat(app): scaffold Electron+Vite package and codeburn CLI spawn 2026-07-10 15:16:55 -07:00