codeburn/app/renderer/sections
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
..
Compare.test.tsx Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
Compare.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
InstallFlow.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
MenuBarAbout.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
MenuBarCard.test.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
MenuBarCard.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
Models.test.tsx fix: uncap the Overview model table, billions token rung, unpriced calls dimming (#1443) 2026-09-17 13:53:10 +02:00
Models.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
Optimize.test.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
Optimize.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
Overview.test.tsx feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
Overview.tsx feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
PeriodCompare.test.tsx Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
PeriodCompare.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
Plans.test.tsx 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
Plans.tsx 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
PluginDetails.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
Plugins.module.css Windows menu bar and Capacity Dock as a Plugins card, plus desktop fixes (#1507) 2026-09-19 18:43:27 -07:00
Plugins.test.tsx Windows menu bar and Capacity Dock as a Plugins card, plus desktop fixes (#1507) 2026-09-19 18:43:27 -07:00
Plugins.tsx Windows menu bar and Capacity Dock as a Plugins card, plus desktop fixes (#1507) 2026-09-19 18:43:27 -07:00
PullRequests.test.tsx fix(app): open the sessions behind a pull request row 2026-09-13 06:41:04 -07:00
PullRequests.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
Sessions.test.tsx fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
Sessions.tsx Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
SessionView.test.tsx Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
SessionView.tsx Explain why one session cost what it did (CLI + app session view) (#1645) 2026-10-06 11:49:58 +02:00
Settings.test.tsx feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
Settings.tsx feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
SettingsSharing.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
SettingsTray.test.tsx fix(app): the tray companion works with only the desktop app installed 2026-09-02 22:10:37 -07:00
SettingsTray.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
Spend.test.tsx Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
Spend.tsx desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
WindowsCompanionCard.test.tsx Windows menu bar and Capacity Dock as a Plugins card, plus desktop fixes (#1507) 2026-09-19 18:43:27 -07:00
WindowsCompanionCard.tsx Windows menu bar and Capacity Dock as a Plugins card, plus desktop fixes (#1507) 2026-09-19 18:43:27 -07:00