A request timeout, conflict or too-early answer was read as a definitive empty
report. They now keep the cached report and retry like 429 and 5xx: the
statuses Vercel's own AI SDK retries, plus 425, which asks for a retry.
When an exchange the cache held is no longer in Warp's table, the kept shares
no longer add up to the reported total and the gap went wholly to the latest
exchange. A current exchange set that is not a superset of the cached one now
discards the cached split and splits the current total fresh.
A permanently unreachable gateway (DNS failure, persistent 5xx) deferred
every refresh forever: stale rows served, the run never fully hydrated. A
network source now counts consecutive retryable failures on its cache entry;
the third marks it failed with its rows kept, so it serves those rows without
fetching until the next day (a credential change still invalidates it) and
shows in doctor as a cached failure. A successful fetch resets the count.
Every non-macOS, non-Windows platform fell through to the Linux locations.
Candidates are now exact per platform: macOS bundles, Linux state dirs,
Windows LOCALAPPDATA, and none elsewhere.
Each Warp conversation is its own source and keepCachedWarpShares only sees
that source's cached entry and calls, so one conversation's growth can never
land on another's new exchanges. Two conversations gaining exchanges together,
only one with billed growth, now pin that.
A request Cline recorded at cost 0 (a free model) was re-priced from tokens
into a positive charge. Any recorded cost, zero included, is now kept; only a
request with no cost field is priced from its tokens.
Marking the whole provider durable also kept a removed usage import's rows,
so removing an import no longer restored the local figures. Durability is now
a per-source override (SessionSource.durable, which replaces the snapshot flag
from the Quick Desktop fix): Grok Bot's mirror slices merge, Quick Desktop's
sessions.db replaces, and orphan handling stays with the provider.
An unreachable gateway, a rate limit or a server error parsed as an empty
report, so the run showed $0 of gateway spend with nothing but a stderr line.
Those failures now defer the source the way a busy SQLite store does: the
cached report keeps serving, the run is marked not fully hydrated, and the
next refresh retries. A refused credential still reads as no report.
The app mirrors only about the last 200 transcript entries per bot, and each
re-parse replaced the cached calls with the current window, so older requests
vanished from live views as a busy bot kept working. Grok Bot sources are now
durable: requests the window dropped stay cached, ones still in it are
refreshed in place.
Quick Desktop sources are merged durably, so a sessions.db estimate cached
before the session's metrics landed was never removed and the session counted
twice from then on. The sessions.db source is now marked as a snapshot of the
store, replaced on each re-parse; a locked store defers the parse (cached rows
kept, retried next refresh) instead of reading as empty. Parse version bumped
so cached double counts re-parse.
Zed's whole history is one source, so a SQLITE_BUSY on open or on the threads
query parsed as zero calls and replaced every cached Zed thread for the run.
Busy errors now reach the parse loop, which keeps the cached rows and retries
on the next refresh, like the other SQLite providers.
Only the macOS group-container paths were tried, so Warp on Linux or Windows
reported nothing unless WARP_DB_PATH was set. Adds the default locations from
Warp's file-locations docs: $XDG_STATE_HOME/warp-terminal (and -preview) on
Linux, %LOCALAPPDATA%\warp\Warp\data on Windows. Both variables join warp's
cache fingerprint.
Warp records cost and tokens per conversation, and each parse re-split the
running total over every finished exchange, so a later exchange's spend moved
onto earlier days. Exchanges already in the cache now keep their share and
only the growth since the last parse is split over the new ones. No new state:
the previous split is read from the cache entry being replaced.
Both providers keep the cost they priced from tokens at parse time through the
cache, and that kept cost was served with costBasis 'recorded', the label for
a tool's own billed figure. They now serve as 'calculated'. Decided at serve
time, so cached calls change label without a re-parse and totals are
unchanged; serve-time re-pricing still needs the pricing id stored.
Generator metadata from the language server omits unset proto3 fields, so an
entry carrying only outputTokens was stored and priced with 0 output. The RPC
path now reconciles the split the way the SQLite path already does. Results
cache v11 and an antigravity parse-version bump re-read cached cascades.
Cline rewrites ui_messages.json in place, which never moves the task
directory's mtime or size, so a growing task kept serving its first cached
snapshot. The source is now the file itself; the new path re-parses every
task once on its own, so no parse-version bump is needed.
The parser read Cline's per-request cost but never marked it as billed, so the
cache dropped it and every read re-priced the tokens at a list price, or at a
stand-in model when the task named none. A positive recorded cost now survives
the cache; requests without one stay re-priceable. Parse versions bumped for
cline, kilo-code and ibm-bob so cached tasks pick the cost up.
* fix(guard): count consecutive failures so a test-edit loop is not stopped
A passing run resets that command's failure count and an edit resets all
of them; only back-to-back failures of one command reach the retry stop.
* fix(guard): do not count polling a background task as a loop
BashOutput, TaskOutput and Monitor repeat the same input by design while
waiting, so they never reach the identical-call warn or stop.
* fix(guard): tell only the user how to lift a stop
The deny reason reaches the model, so it no longer names 'codeburn guard
allow' or the guard.json threshold; that hint moves to the systemMessage
the user sees.
* fix(guard): allow without an id names its session and refuses when ambiguous
The cache now keeps the session's cwd. 'codeburn guard allow' prints the
session it lifts (id, cwd, cost) and exits 1 with the candidates listed
when more than one session wrote its cache in the last five minutes.
* fix(guard): prune session caches and allow markers after 30 days
writeCache checks at most once a day and removes per-session files left
untouched for 30 days; an allow marker stays while its session is live.
* fix(guard): write the session cache via temp file and rename
Parallel tool calls run PreToolUse hooks concurrently; an in-place write
could be read half-done, parse as empty and reset the warned flags.
* fix(guard): retry the cache rename on Windows sharing errors
A rename over a cache another hook has open fails with EPERM/EBUSY/EACCES
on Windows; retry with a short backoff, then write in place so the hook
never throws.
* fix(guard): keep the previous cache when the rename keeps failing
An in-place fallback write could be read torn and reset the warned flags.
After the retries the old cache stays, and readCache retries once on a
parse failure before starting over.
* fix(guard): word the Stop retry count as the longest streak
The count is the session's longest run of failures, which an edit may
since have broken. Also cite the hook contract at deny().
* test(guard): prove the rename without an inode check
ext4 can hand the freed inode number straight back on a rename, so count
rename calls and check the last payload won instead.
* fix(guard): treat a sleep-then-check command and calls whose results keep changing as waiting, not looping
A Bash command that starts with sleep is waiting on CI or a server and
never counts toward the loop. Other identical calls count only while
their tool results stay the same; a changing result is progress.
* fix(guard): exempt a sleep only when what follows is a read-only check
'sleep 0; npm test' repeated forever no longer escapes the loop counter.
The part after the sleep must be read-shaped, or a gh view/list/checks/
status/diff/watch call, which the shared read list leaves out.
* fix(guard): only a successful edit resets the retry counts
An edit is held pending until its tool result lands; one that errored,
like an old_string that did not match, changed no code and leaves the
failure counts alone.
* fix(guard): a sleep followed by a bare echo is a wait
'sleep 150 && echo waiting' is a blind timer wait. An echo with no
redirection, chaining or substitution now counts as a read-only check
after a sleep. The echo and gh read patterns also stop at a newline, so
a second command on the next line still counts.
* fix(optimize): count slash commands named with their leading slash as used
A slash command shows up in the transcript as <command-name>/review</command-name>.
commandNames kept the slash, so "/review" never matched the defined command
"review": every command the user actually ran was reported unused and the apply
plan archived it. The leading slash is now stripped.
commandNames produces stored facts, so FACTS_VERSION goes to 2 and the
optimize facts store rebuilds once on the next run.
* fix(optimize): name MCP servers the way Claude Code namespaces their tools
Claude Code turns every character outside letters, digits, "_" and "-" into
"_" when it builds tool names, so a server "docs.local" is called as
mcp__docs_local__*. Config names were only mapped ":" -> "_", so such a server
was reported as never called and offered for removal, counted twice by the
deferral check, and shown with 0 calls by the alwaysLoad check. One helper,
mcpNamespace, now applies the full rule in the config loader, the local server
names and the remove plan's key lookup.
* fix(optimize): charge a never-called MCP server's schema once
A configured server that was never called is in unused-mcp, and the same
schema was charged again by mcp-deferral-off (unpinned) or
mcp-alwaysload-hygiene (pinned), so potential savings and the share of spend
summed it twice. The servers unused-mcp reports are now passed to both checks
and left out there.
* fix(act): recommend a default model only for Claude Code projects
The model-default plan writes "model" into <project>/.claude/settings.json,
which only Claude Code reads. A Codex project got a gpt model recommended and
apply-model wrote it there, so Claude Code in that project started on a model
it does not know. recommendModelDefault now returns nothing for a non-Claude
provider.
* fix(optimize): read the bash output cap from the settings env block first
Claude Code takes BASH_MAX_OUTPUT_LENGTH from the env block of its settings
files. The check only read shell profiles (lines with export) and the process
env, so a cap of 10000 set in settings.json still reported the 30K default and
the apply plan appended an export to ~/.zshrc that the settings value
overrides. The check now uses the same lookup as the deferral checks: settings
env from the most specific scope, then shell profiles.
* fix(act): plan each optimize fix right before applying it
optimize --apply built every plan up front, each carrying the hash of the
config file as first read. When two fixes edit the same file (remove one MCP
server and unpin another in .mcp.json, or two edits to ~/.claude.json), the
first apply changed the file and the second was refused as "changed since the
plan was built", exit code 1. Each plan is now rebuilt from the file on disk
just before it runs; the baseline captured for it is kept, and the stale-plan
check still guards edits made while the plan is being applied.
* fix(optimize): fast mode on background agents saves dollars, not tokens
Switching subagent calls from fast to standard speed bills the same tokens at
a lower rate. The finding claimed every output token of those calls as tokens
saved, which inflated the token headline and pushed it up the urgency ranking.
tokensSaved is now 0; the dollar figure is unchanged and still carries it.
* fix(optimize): charge an unused MCP server only to Claude sessions
unused-mcp reads servers from Claude Code config, but multiplied their schema
by every session of every provider in the period, so under --provider all a
handful of Claude sessions next to hundreds of Codex or Cursor sessions
produced a large token and dollar figure. It now counts and prices only Claude
sessions, as the deferral checks already do.
* fix(optimize): stop reading MCP servers from ~/.claude/settings.json
Claude Code reads MCP servers from ~/.claude.json and .mcp.json, not from the
mcpServers key of ~/.claude/settings.json or settings.local.json. The MCP
checks read both user settings files, while the remove plan never edits them,
so a server listed only there showed as an unused server with savings under
"Fix now" and apply skipped it as "not found in editable config". The loader
now leaves those two files out; its home directory parameter, and the one on
the alwaysLoad check that only fed it, go with them.
* fix(act): match MCP servers in the report by their namespace
The report's baseline keeps config names such as "docs.local", while sessions
name the server as Claude Code does in tool names ("docs_local"). A removed
server that came back never matched, so act report counted savings instead of
reading it as reverted. sessionLoadsAny now compares through mcpNamespace.
* fix(optimize): keep every config name that maps to one MCP namespace
Claude Code turns "a.b" and "a:b" into the same tool namespace "a_b", so the
MCP config loader keyed both under one entry and kept only the newest name.
unused-mcp then named one of them, and the remove plan left the other config
entry in place. The entry now keeps every config name; unused-mcp and the
alwaysLoad check pass each one to their plans.
* fix(act): read a "__" server name whole from report inventory entries
Inventory entries are mcp__<server>__<tool>, and the report took the server
as the second "__" segment, so a server named "a__b" was read as "a" and a
re-added "a__b" never showed as reverted. The tool is now cut off from the
right, leaving the full server name.
* fix(act): resolve MCP namespaces against the known servers
mcp__a__b__c can be server "a__b" with tool "c" or server "a" with tool
"b__c", and both fixed rules (first segment, or cut from the right) pick the
wrong server for some names. A tool name is now split at the longest server
namespace found in the MCP config (plus the servers being measured in act
report), falling back to the first segment only when none matches. This
applies to act report's inventory reads and to the call names unused-mcp and
mcp-deferral-off count.
* fix(act): replan only for files an earlier fix in this run changed
Rebuilding every plan right before it ran took a fresh hash of the current
file, so under --apply --yes a config file edited outside codeburn between
selection and apply was rewritten anyway, where the stale-plan guard used to
refuse it. The run now records the hash of every file it writes. A plan is
rebuilt only when one of its files differs from the plan solely because an
earlier fix in this run wrote it; any other change keeps the original plan,
and runAction rejects it with "changed since the plan was built".
* docs(optimize): note why an MCP tool name with two known prefixes is ambiguous
* fix: keep tool and model names like constructor or toString as plain names
Lookups of provider-supplied tool names and model ids into plain-object maps
returned the inherited Object.prototype member, so one session with a tool
named constructor rejected the whole parse, and a model named toString broke
the models report and the menubar payload. Route those lookups through
Object.hasOwn.
* fix: never overwrite an unparseable config.json
readConfig fell back to {} on any error, so one syntax error in a hand-edited
config.json plus any setter (currency, budget, model-alias, ...) saved {} with
one key and erased every other setting. saveConfig now moves an unparseable
file to config.json.corrupt-<timestamp>, says so on stderr and exits 1; read
paths keep the {} fallback with a one-line warning.
* fix: validate the plugin name before plugin remove, info and verify touch disk
plugin remove joined the raw name onto the plugins dir, so
`plugin remove .. --confirm` deleted the whole codeburn config dir. Check the
name against the manifest name pattern first, as the loader already requires.
* fix: keep a model or tool named __proto__ in every running total
The per-model and per-tool totals behind the models report, the menubar
payload, the JSON report and the export assigned into plain objects, so a
name like __proto__ set the prototype instead of adding a row. Build them
prototype-free, and stop the daily cache load from dropping model rows whose
name happens to be an Object.prototype member: they are written own-only.
* fix(desktop): decode CLI output across pipe chunks so split UTF-8 characters survive
* fix(desktop): cap serve answers by decoded size and fall back instead of killing the resident
* perf(desktop): scan only the new chunk for a serve line break
* fix(desktop): an over-cap answer fails its request without a cold retry
* fix(desktop): an oversized serve frame fails its request without a cold retry
* fix(desktop): give the serve frame room for an answer that escaping doubles
* test(desktop): feed serve frame boundaries and split UTF-8 as explicit chunks, count the newline scan
* fix(cost): count only the estimated output of a placeholder call as estimated
A pre-2.1.307 subagent call has its output estimated but its input and
cache tokens recorded. The estimated share and costBasis split counted
the whole call as estimated; now only its output cost is, the rest stays
calculated. Totals are unchanged.
* test(cost): cover the estimated output share under discounts, tiers, fallbacks and shares
* fix(daily-cache): re-derive sealed days when a model alias changes
The daily cache config hash covered savings, price overrides and flat-rate
marks but not model aliases, so after codeburn model-alias the sealed days
kept their old (often $0) cost while live views showed the priced value.
A changed alias set now re-derives the backfill window once on the next run;
carried days keep their stored accounting.
* fix(totals): fill a past date the sealed cache lacks in the all-provider headline
The provider-scoped overlay fills a (date, provider) the cache has no row for
from the live parse, but the all-provider union only reconciled dates the
cache already held. A date missing from a complete cache therefore showed
under --provider and vanished from the all-provider total, so one provider
could total more than all of them. The union now fills an absent historical
date from the live day it already has; the normalized-index path drops its
separate incomplete-cache fill, which the union now covers.
* fix(budget): measure the weekly budget over 7 dates, not 8
The weekly tier reused the 'week' period, which starts at today-7, so
budget --check and the overview budget line summed 8 calendar days against
a 7-day budget. The budget range now starts at today-6; the 'week' period
itself is unchanged.
* fix(cache): accept ultrafast calls when loading the session cache
The cache validator only allowed standard, fast and flex, so a Codex day
piece holding one ultrafast call failed validation as a whole and every
file in it re-parsed on each run. The allowed set now comes from one
SPEEDS constant shared with the types.
* fix(parser): keep a busy SQLite source's cached rows
A changed source's cache entry was deleted before the parse, so a read
that hit SQLITE_BUSY left nothing behind and the report dropped that
source's spend for the run. The prior entry is now put back when the
read is deferred.
* fix(status): recompute the menubar snapshot on any corpus change
On the first fingerprint mismatch the snapshot loader served the last
saved payload for that query, however old, for a 2 s grace window. Back
to back queries could then show lifetime below 30 days, or one provider
above all. A changed fingerprint is now always a miss; an unchanged one
still reuses the saved result.
* perf(compare): count self-corrections from stored per-file facts
The self-correction scan re-read every transcript of the compared period on
each request, 35-45 s for 30 days and lifetime. Each transcript is now read
once per file version: the messages that matched are kept in
scan-facts.v1 beside the session cache, keyed by path, size and mtime, and a
transcript that only grew is read from where the last read stopped. A period
is then a walk over the stored hits, deduped by model and timestamp across
files as before.
On a frozen copy of a 23 GB history the JSON for today, 30 days, all and
lifetime is byte-identical to the previous scan; lifetime drops from 42 s to
4 s one-shot and from 45 s to 4 s in serve, after one build at today's cost.
* fix(optimize): join scanned files in discovery order
The scan joined each file's result when its read finished, with four reads in
flight, so savings sums, ties in the previews and which project settings file
won all followed I/O timing. Two runs over the same files could differ. Results
are now joined in the order the files were discovered.
* perf(optimize): keep only what the detectors read from each transcript
The scan kept every Bash command and up to 2,000 characters of every user
message, though the read:edit ratio only asks whether a command reads and the
unused-commands check only asks which slash commands a message names. Each
call now keeps the read-shaped flag and each user entry the command names, so
findings are unchanged while a 23 GB history scans into a record about a
tenth of the size.
* test: hash the facts rules with normalized line endings
* perf(optimize): read each transcript once per file version
Optimize re-read every Claude transcript modified since the period start on
every request, 50-60 s for 30 days and lifetime on a 23 GB history, and the
in-process scan memo could hold only a fraction of it. Each file's scan record
is now kept in the scan-facts store, keyed by path, size and mtime; a file that
only grew is read from where the last read stopped, and every request projects
the stored records exactly as it projected fresh scans. Repeated cwd lines are
kept as runs with their instants, and an instant that did not parse round-trips
as NaN, not 0.
On a frozen copy of the history the JSON for today, 30 days, all and lifetime is
byte-identical to the previous scan, with the store empty and warm. Lifetime
drops from 56 s to 6 s one-shot and in serve after one build at today's cost;
the store is 67 MB for 7,332 transcripts.
* perf(compare): count self-corrections from stored per-file facts
The self-correction scan re-read every transcript of the compared period on
each request, 35-45 s for 30 days and lifetime. Each transcript is now read
once per file version: the messages that matched are kept in
scan-facts.v1 beside the session cache, keyed by path, size and mtime, and a
transcript that only grew is read from where the last read stopped. A period
is then a walk over the stored hits, deduped by model and timestamp across
files as before.
On a frozen copy of a 23 GB history the JSON for today, 30 days, all and
lifetime is byte-identical to the previous scan; lifetime drops from 42 s to
4 s one-shot and from 45 s to 4 s in serve, after one build at today's cost.
* test: hash the facts rules with normalized line endings
The Sessions drill-through asks for contribution segments over the whole
population, and over all time that answer is 28MB, past the 16MiB cap:
the request failed and the resident child was killed with it. The CLI
now answers one of n fixed slices with --part i/n, keyed by session
identity so a re-derived report never duplicates or drops a row, and the
bridge fetches eight slices in turn and restores the report order. The
renderer receives the same rows in the same order as before.
The resident child aborted with a V8 out-of-memory at a 4.2GB heap limit
while its resident size (5.4GB) was still under the 6GB guard, so the
guard never fired. Measure the heap instead: drop the memos when used heap
passes 70% of the limit, before and after each request, and keep the RSS
check as a second trigger. A request that runs the optimize transcript scan
adds 1.1-1.6GB on its own, so it starts only with 60% of the heap free.
* perf(compare): scan self-corrections only in the compared period, streamed
The self-correction scan read every transcript on disk for any period, so
compare took ~50 s even for today and the Today table showed lifetime counts.
It now reads only the sessions the compare reported on, line by line, so
transcripts over V8's string limit are counted instead of silently skipped.
* fix(compare): count self-corrections by message time, not whole sessions
Calls and cost are attributed by message timestamp, so a self-correction now
counts for a period only when its own message falls inside the compared
range. Sessions are still selected by the reported ids.
The resident serve child answers one request at a time. A background
compare (about a minute) or optimize (10 to 70 s) made any click queue
behind it. Both payloads are small and persist, so a revisit still
paints from the snapshot; the first visit pays its own time only.
When the cached claude section was written under a different parse version
(another CodeBurn version sharing the cache dir, or an upgrade), the parse
loaded every shard of it in full and then replaced it, keeping only entries
whose transcript is gone. On a 23 GB history that load alone was ~500 MB of
heap held alongside the re-parse. A parse load now leaves present sources of
such a section on disk and reads only the gone ones. Other loadCache readers
are unchanged, and the cached and reported numbers are identical.
Every subagent's step list ships with the session since the agents view,
so a session with 863 helpers grew from 10.8 MiB to 42.4 MiB and the
desktop refused it. Steps now leave out default fields (isError false,
answer false, empty detail, calculated basis), the unused context delta,
and round the cached share. Past a 12 MiB budget the JSON drops whole step
lists, cheapest helper first and then prompts, with a truncatedSteps count
the Inspect, Agents and Story views show.
* feat(windows): quota run-out forecast and crossing notices
Pace math and crossing state ported from the menubar. Readings stay in
memory per window for six hours; the forecast uses only the current
cycle, drops readings before the last fall, looks back 60 minutes on
short windows and six hours on long ones, and speaks only after two
readings ten minutes apart with a rise of two points. Notices fire at
the chosen threshold, at 100%, and once when the pace runs the window
out before it resets, deduped per cycle with the reset bucketed to the
minute.
* feat(windows): show the quota forecast and post crossing toasts
Every fresh quota answer records the readings, writes the forecast into
the windows it watches and posts a toast through the notification
plugin. The hover card shows "out 15:40" in place of the reset
countdown while a forecast exists, the plan rows caption it ("hits 100%
in 3h" or "lasts until reset") instead of the whole-window ETA, and
Settings gets the alert switch, default on, with a 70/80/90 threshold.
* feat(desktop): inspect view for a prompt with request cards and insights
An open prompt now reads as one card per model request, newest first, with
the tool calls each request asked for nested under it. Each card shows the
request number and model, tokens in, out and cached share, what the request
did (asked for tool calls or wrote the answer), its duration against the
prompt's longest step, and its output tokens and cost. Tool rows show the
command or target, duration, the context the result added, a parallel label
when one message asked for several calls, and a muted failed state. A search
field and an All / Model / Tools switch narrow the list, and any card or tool
opens the existing step detail.
Above the cards a summary line and an insights strip name the slowest and the
costliest request, the tool that added the most context, how the tool calls
ran, and failed steps when there are any. Rows that cross the existing
slow-call and carried-result thresholds lead. The two-lane waterfall is gone:
the cards carry the same timing.
The session payload gains the fields this needs, computed at serve time:
each tool step names the model step that asked for it, a parallel position
and its result size; each model step carries its cached share, the context
delta to the next request, its tool call count, its cost basis and whether
it wrote the answer.
* fix(desktop): one place for out tokens on a request card
The request card showed output tokens twice, in the meta line and as a pill. The pill is gone; the meta line keeps the count and the dollar pill stays.
* feat(desktop): agents view with each subagent's lifecycle and cost by agent
* feat(desktop): story view that tells a prompt in plain sentences
* fix(desktop): story wording and copy feedback
* feat(claude): attribute usage to the account that was active
* fix(claude): identify by organization and keep the identity field under a filter
* test(claude): check the log file mode on POSIX only
* feat(menubar): show each Claude account inside the provider box
* fix(claude): record the plan only where the credential is already read
* feat(menubar): record the plan the quota poll already knows
* ci: run the checks
* test: keep real fs and child_process exports in the WSL spawn mocks
* feat(desktop): inspect view for a prompt with request cards and insights
An open prompt now reads as one card per model request, newest first, with
the tool calls each request asked for nested under it. Each card shows the
request number and model, tokens in, out and cached share, what the request
did (asked for tool calls or wrote the answer), its duration against the
prompt's longest step, and its output tokens and cost. Tool rows show the
command or target, duration, the context the result added, a parallel label
when one message asked for several calls, and a muted failed state. A search
field and an All / Model / Tools switch narrow the list, and any card or tool
opens the existing step detail.
Above the cards a summary line and an insights strip name the slowest and the
costliest request, the tool that added the most context, how the tool calls
ran, and failed steps when there are any. Rows that cross the existing
slow-call and carried-result thresholds lead. The two-lane waterfall is gone:
the cards carry the same timing.
The session payload gains the fields this needs, computed at serve time:
each tool step names the model step that asked for it, a parallel position
and its result size; each model step carries its cached share, the context
delta to the next request, its tool call count, its cost basis and whether
it wrote the answer.
* fix(desktop): one place for out tokens on a request card
The request card showed output tokens twice, in the meta line and as a pill. The pill is gone; the meta line keeps the count and the dollar pill stays.
* feat(desktop): agents view with each subagent's lifecycle and cost by agent
* feat(desktop): inspect view for a prompt with request cards and insights
An open prompt now reads as one card per model request, newest first, with
the tool calls each request asked for nested under it. Each card shows the
request number and model, tokens in, out and cached share, what the request
did (asked for tool calls or wrote the answer), its duration against the
prompt's longest step, and its output tokens and cost. Tool rows show the
command or target, duration, the context the result added, a parallel label
when one message asked for several calls, and a muted failed state. A search
field and an All / Model / Tools switch narrow the list, and any card or tool
opens the existing step detail.
Above the cards a summary line and an insights strip name the slowest and the
costliest request, the tool that added the most context, how the tool calls
ran, and failed steps when there are any. Rows that cross the existing
slow-call and carried-result thresholds lead. The two-lane waterfall is gone:
the cards carry the same timing.
The session payload gains the fields this needs, computed at serve time:
each tool step names the model step that asked for it, a parallel position
and its result size; each model step carries its cached share, the context
delta to the next request, its tool call count, its cost basis and whether
it wrote the answer.
* fix(desktop): one place for out tokens on a request card
The request card showed output tokens twice, in the meta line and as a pill. The pill is gone; the meta line keeps the count and the dollar pill stays.
* feat(claude): attribute usage to the account that was active
* fix(claude): identify by organization and keep the identity field under a filter
* test(claude): check the log file mode on POSIX only
* chore(telemetry): default on in every region, consent screen and toggle unchanged
The desktop app, the macOS menu bar and the Windows tray no longer pick the
telemetry default from the country. A fresh install starts with telemetry on
everywhere, including the EU, EEA, UK, Switzerland and an unknown region.
The country lists and the helpers that read them are gone.
A stored choice, on or off, is kept as before. The first-launch flow and the
Settings toggle are unchanged. The README and the code comments now say the
default is on in every region and that Settings turns it off.
* docs(telemetry): say what each surface does
With only the desktop app installed from the Homebrew cask, the menu bar
failed to load Today with "nonZeroExit (code: 127, stderr: env: codeburn:
No such file or directory)". The menu bar looked for a codeburn in the
path recorded for it and in package-manager folders, then fell back to the
bare name. A desktop-only machine has nothing in those folders, so when the
record was missing or no longer ran, nothing was found and the error named
nothing.
The packaged desktop app now carries a plain launcher at
CodeBurn.app/Contents/Resources/cli/codeburn that runs its bundled CLI
through its own executable and finds its own bundle. The menu bar checks
it, in /Applications and ~/Applications, after the recorded path and the
package-manager folders. When none of them runs, Today says which paths
were tried. The CLI's menubar installer records the same launcher instead
of refusing the install when nothing named codeburn is on PATH.
* feat(optimize): flag an autoCompactWindow that blocks idle compaction
* fix(optimize): render a finding without a dollar figure cleanly and gate the idle-compaction rule on the one-hour cache
* fix(optimize): group headers without a figure when the group has none
Anthropic renamed the Max 20x plan to Ultra, but the credential's rate-limit tier id is still default_claude_max_20x. A parsed multiplier of 20 now labels Ultra in the CLI, desktop, Windows and menubar twins; other multipliers keep Max Nx.
* feat(sessions): mark sessions kept after their transcript was deleted
When a write refresh keeps a cached session whose source file is gone
(a Claude session with PR links, or a copilot or quickdesk entry inside
its 90-day window), the cache entry now records retainedSince, the local
date of the first refresh that found the file missing. It is set once and
kept on later refreshes. Offline WSL roots are not deletions and stay
unmarked.
Sessions served from such an entry carry retained.since. The sessions
JSON rows include it, the sessions table puts * after the start time with
a legend line, and the export adds a last retained column to records and
sessions in JSON and CSV. The desktop Sessions list and drawer show a
muted note naming the tool and the date.
Behaviour does not change: the same entries are kept and evicted, and
every total and the by-PR numbers are unchanged. The field is optional,
so the cache version stays.
* fix(sessions): say when the transcript was found missing, not deleted
The desktop note, the sessions table legend, the export readme and the docs no longer give a deletion date. retainedSince is the day CodeBurn first found the transcript missing, so the note now reads that the transcript has been missing since that date.