The period strip stopped at "All", which the CLI reads as six months, so
there was no way to ask for the whole history and no way to ask about one
particular day. The mac offers six segments plus a calendar button, and
the CLI has taken --day and --days all along.
The strip now carries the mac's labels (Today, 7D, 30D, Month, 6M, Life),
which are short for a reason: six segments and the button share one 360 px
row. The picker collects days into a pending set and only applies them on
Done, so choosing five days costs one CLI run rather than five, and the
caption reads "2 days (2026-08-31 .. 2026-09-01)" as it does on the mac.
A picked day overrides the period without clearing it, so dismissing the
picker returns to whatever segment was live.
The payload cache is now keyed on the whole selection rather than on
period and provider, since two selections that send different arguments
to the CLI are different answers. Rust validates the dates itself: is_safe_arg
would happily pass "2026" or a bare word to --day.
The card was drawn rounded but three square things sat behind it: the
acrylic backdrop, which the window effect paints edge to edge and which
DWM's corner preference does not clip; the DWM frame line; and the DWM
drop shadow, whose inner edge is the window rectangle, so it met itself
at a right angle exactly where the card curved away. The result was a
rounded card with square corners showing through, worst at the top left
and along the bottom.
The window now paints nothing at all. The acrylic effect is gone (at 94
percent surface opacity it was contributing a tint, not a blur, and the
surface is simply opaque now), DWM is told not to round and not to draw a
border, and the OS shadow is off. In its place the window is 12 px larger
than the card on every side and the page paints its own drop shadow into
that gutter, so the shadow follows the card radius. The gutter doubles as
the inset the card kept from the work-area edge, so the card lands where
it always did.
Verified at 10x on all four corners in both themes: one antialiased arc,
the desktop behind it, and the shadow curving with it.
Every chip led with a 5 px coloured dot, so a strip of five providers read
as a legend before it read as a row of names, and the dot competed with
the quota capsule underneath it for the same "how is this provider doing"
glance. The name and the cost carry the chip on their own.
The provider colour table stays: the capsule, the hover card and the
settings panes can still ask for a brand colour.
The popover opened with a flat two-tone wordmark and "AI Coding Cost
Tracker", which is a category, not a promise. The mac says "Your AI Bill,
Itemized" under the site's animated flame wordmark, and lets the reader
pick the accent the whole surface is drawn in.
The wordmark is the website's .flame-text verbatim: a 300 percent wide
flame gradient clipped to the letters, swept by flameShift 3s ease
infinite. It pauses while the popover is hidden, the gate the mac added
after measuring 5 to 7 percent idle CPU on an always-running sweep, and
honours prefers-reduced-motion.
The nine presets are ThemeState.swift's, each with its four shades, and
they map one to one onto the accent tokens the stylesheet already
declares on :root. Writing them as an inline style on the same element
outranks both theme blocks, so a single write covers light and dark, and
main.tsx applies the saved preset before the first paint so nothing
renders in ember and then jumps. The dock window reads the same tokens.
Plan describes one subscription: a tier, its windows and when they reset.
Under All it stacked a block per connected provider, which reads as a
list of plans rather than an insight and pushed the real content off the
first screen. The mac hides the pill unless a single provider with a live
quota source is selected, so do the same and drop the stacking.
Plan was Claude only, and its pill was gated on Claude being the single
detected tool, so a machine running two tools lost the view entirely. It now
follows the quota store: the pill appears when the selected provider reports
quota, or when All is selected and at least one does, and All stacks a block
per connected provider with Claude first.
Claude keeps its own path. The tier and last cycle's final reading come from
the credential file through plan_usage, and nothing else can supply them.
Other providers render from the store with the same utilization rows and the
same projection captions, plus the mac's no-credentials and reconnect states.
The CLI reports a window's label and reset time but not its length, which the
projection needs to know how far into the window we are, so the length is read
off the label and an unrecognised one gets no caption rather than a guess.
A capsule under a tab only speaks when you are looking at that tab. The mac
puts a compact row under the wordmark listing every connected provider at or
over the warning threshold with its worst window, so the answer to "am I about
to hit a wall" is on screen the moment the popover opens.
Ported from QuotaWarningRow in MenuBarContent.swift, including the wording
that reads "Claude over limit (105%)" for a single provider past its cap
rather than the awkward "105% of quota used", and the icon ladder from
info circle through exclamation circle and triangle to the octagon.
The popover had no idea how much of a subscription was left; only the Capacity
Dock read `codeburn quota`, and it polled on its own. A store in the page now
owns that answer: one CLI spawn every two minutes, single-flight, with the
mac's SubscriptionRefreshBackoff on failure (a failed refresh retries after
30s and doubles back out to the cadence, plus jitter), polling only while a
surface is subscribed. The strip, the warning row and the Plan insight will
all read it rather than each spawning a Node process.
Each tab whose provider reports quota gains AgentTabQuotaBar: a 3px capsule in
the four severity tiers (under 50 green, yellow, orange from 75, red from 90),
solid red when the credential needs reconnecting. Hovering opens the mac's
260px QuotaDetailPopover after 250ms and closes it 150ms after leaving: plan
pill, a row per window with bar, percent and time to reset, and the stale,
retrying, disconnected and reconnect cards with the mac's copy.
The CLI's quota JSON is flatter than the mac's adapters, collapsing the
connection state to `available` plus an optional error, so the six-way
Connection enum is rebuilt from those two fields plus what the store knows
about the refresh in flight.
The severity palette needed a second set of tokens: the mac only ever draws
these colours on a dark material, and plain yellow is illegible on this warm
light surface, so text and icons take a darkened ink in the light theme while
the bars keep the system colours. A third set covers the hover card, whose
surface is deliberately inverted against the theme.
The strip was a fixed seven, so a machine running Gemini, Kimi or any of the
other two dozen tools the CLI reports had no way to filter by them. It now
mirrors AgentTabStrip.swift: All first, then every provider the payload says
has activity, dearest first, with the provider's brand mark from the mac's
ProviderFilter.color and the compact cost chip. Provider ids come straight
from the payload, which is what --provider takes, so any tool the CLI grows
appears without a change here.
The known-tool list stays as the fallback for a machine the CLI has not seen
activity on, dimmed and explaining itself on hover, because that copy is the
first-run answer to "what is CodeBurn watching".
Overflow chevrons select the neighbouring tab, as on the mac, rather than
scrolling blindly; both measurements are taken from elements the chevrons do
not resize, so showing them cannot feed back into the overflow decision.
Process spawning (Windows searches the current directory before PATH):
- reg.exe and cmd.exe are now spawned by absolute System32 path via
cli::system_command, which also carries the CREATE_NO_WINDOW flag the three
previous copies each set by hand. The tray badge re-ran `reg query` on every
refresh, so this was the most reliably reachable planted-binary path.
- "Connect Claude" resolves the claude binary itself instead of handing a bare
name to the console shell.
- CLI lookup ignores empty and relative PATH entries. `;;` or a trailing `;`
used to yield PathBuf::from("").join("codeburn.cmd"), a current-directory
lookup, at startup. The filter lives in one place (find_in_dirs) that every
search - codeburn, claude, and the Linux terminal probe - goes through.
- The Linux terminal path re-validates the whole command against the argument
allowlist before joining it into the string `bash -lc` parses; anything that
fails falls through to the argv-only detached spawn.
CLI version gate:
- MIN_CLI_VERSION moves from 0.7.0 to 0.9.9, the first release accepting
`status --format menubar-json --no-optimize` (every quiet refresh passes it)
and emitting all the payload fields the popover reads.
- The gate is probed on mount, before the first fetch. It previously only ran
when a fetch failed with the literal "CLI not found", so an old CLI produced
a payload whose missing history.daily threw and blanked the popover.
- A successful fetch no longer flips an incompatible CLI to compatible, and the
settings panel no longer probes on its own - App owns the verdict, so a
transient probe failure there cannot drop a working app onto the setup screen.
- The payload reads App makes are optional now, so a surprising payload lands on
an empty state rather than a blank window.
Refresh cadence, mirroring mac RefreshCadence.swift: 60s with optimize findings
while the popover is visible, 120s today/all without them while it is hidden,
and an immediate refresh on show when the visible key is stale. Every hide path
in lib.rs now goes through mark_hidden so the debounce stamp and the frontend
signal cannot drift. Previously it was 60s with optimize regardless of
visibility - about 2880 CLI spawns a day.
Claude quota (plan.rs) stops calling the token refresh endpoint. Claude's
refresh token is single-use and rotates, so spending it invalidated the token
Claude Code itself holds and broke the user's login. Parity with
ClaudeCredentialStore.refreshAfter401: re-read Claude's own store for a token it
has already rotated, and report a transient failure when there is not one yet.
Smaller:
- Snapshot writes refuse a symlinked target and are 0600 on unix, mirroring
mac SafeFile; no home directory now means no snapshots rather than a file
dropped in whatever directory the tray was launched from.
- The Windows config lock keeps its file handle open, so the stale sweep can
only ever unlink a lock whose owner is gone. The doc comment now says what the
lock actually buys (the CLI never takes it).
- "updated Xs ago" is only stamped by a fetch of the key on screen.
- External links go through tauri-plugin-opener instead of target=_blank.
- The tray badge font is loaded once into a OnceLock instead of read and parsed
on every render.
- autostart's shared import and constant are cfg-gated so clippy is clean on
every OS.
Adds unit tests for the PATH filter and the version gate.
Brings the Tauri 2.x tray popover from #1022 onto main as windows/, mirroring
mac/. Product name, bundle identifier, and version line up with the macOS
menubar (org.agentseal.codeburn-menubar, 0.9.20); the crate is renamed off
"desktop" so it no longer collides with the Electron app in app/.
Linux (ksni) stays compiled and dev-usable but is documented as experimental:
gnome/ is the shipping Linux surface.
The five src/ CLI commits on that branch are dropped - they re-implement a
daily-bucketing fix main already carries.