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
Compare.tsx
InstallFlow.tsx
MenuBarAbout.tsx
MenuBarCard.test.tsx
MenuBarCard.tsx
Models.test.tsx
Models.tsx
Optimize.test.tsx
Optimize.tsx
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
PeriodCompare.tsx
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
Plugins.module.css
Plugins.test.tsx
Plugins.tsx
PullRequests.test.tsx
PullRequests.tsx
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
SettingsTray.test.tsx
SettingsTray.tsx
Spend.test.tsx
Spend.tsx
WindowsCompanionCard.test.tsx
WindowsCompanionCard.tsx