Skip to content

fix: name the usage that prices at $0 instead of hiding it (#1420) - #1491

Merged
iamtoruk merged 1 commit into
getagentseal:mainfrom
ozymandiashh:fix/1420-unpriced-visibility
Sep 18, 2026
Merged

iamtoruk merged 1 commit into
getagentseal:mainfrom
ozymandiashh:fix/1420-unpriced-visibility

Conversation

@ozymandiashh

Copy link
Copy Markdown
Collaborator

Fixes #1420.

What

Two halves of the same invisibility, one PR:

CLI. codeburn models's default table keeps its $0.01 floor and its numbers, but the default flow no longer ends in silence about what the floor dropped. One line after the table:

3 more models price at $0 (429.1M tok) — codeburn models --unpriced to see them

— also when the floor dropped every row and the table read "No model usage found for the selected period." (the whole of #1420 in one screen). An explicit --min-cost is the user's own cut and prints nothing; --format json|csv|markdown stay machine-clean. The floor and the --top slice are now applied at the call site (fetched unfiltered) so the dropped set is observable; the displayed table is byte-identical to before in every invocation — verified differentially, old build vs new, across default / --top N / --min-cost / --unpriced / --by-task / --by-agent / all four formats (zero table diffs; the only delta is the intended line). The dropped set is folded per model (breakdown modes emit several rows per model) before findUnpricedModels, so its exclusions — local-looking, flat-rate, alias-mapped, sub-cent-priced — all apply, and only genuinely unpriced models are counted.

Surfaces. The menubar payload has carried unpricedModels since #638; the MCP tables and the desktop's compare view render it, but the popover, the tray and the dashboard never did. Each now renders one secondary line under the models list — "N models unpriced, counted at $0 · M tokens", the wording every existing consumer uses:

  • macOS popover (ModelsSection): one secondary 10.5pt line after the token line, hidden when the block is absent or empty; localized in en and zh-Hans (both catalog keys, positional specifiers); exact ids, calls and token counts in the accessibility label. Decodes as decodeIfPresent ?? [] declared last with a default, so older payloads render exactly as before.
  • Windows tray (ModelsSection): a second tokens-line-style footnote; ids and call counts in the row tooltip. The payload mirror type gains the field.
  • Web dashboard (Top models panel): a footnote line under the table ("count unknown, not zero", with the model-alias / price-override pointer), passed through normalizePayload which rebuilds current field by field.
  • Desktop app: unchanged — its Models table already shows unpriced rows dimmed with the add-alias affordance (fix: uncap the Overview model table, billions token rung, unpriced calls dimming (#1318) #1443, fix(app): pass --min-cost 0 so Models shows sub-cent and unpriced rows #1474), and PeriodCompare's CoverageCard already lists the block.

Verification

  • tests/cli-models-unpriced.test.ts: 4 new tests (line present with mixed usage; the empty-table case; silence when everything priced or the floor was explicit; machine formats clean) — 10/10 in the file. Sub-cent priced rows, savings-only local models, flat-rate and local-savings-mapped models confirmed not to trigger the line.
  • Regression: 285 tests green across models-report, cli-model-flat-rate, cli-model-savings, menubar-report-parity, models, model-breakdown, menubar-model-tokens, local-model-savings, period-diff, mcp-tables, overview.
  • Swift: swift build clean; the new ModelsSectionUnpricedLineTests (offscreen ImageRenderer render + legacy-payload decode) is included — this machine has no full Xcode so the suite runs on CI, but the test file was typechecked against the built module and the localization tables verify en/zh-Hans key parity and specifier parity locally.
  • tsc --noEmit clean at root, in windows/ and in dash/.

Not in scope, per the issue: #1364 (the gateway's own pricing rows), #969 (warning truncation), #968 (flat-rate false positives).

…eal#1420)

The models default table keeps its $0.01 floor but prints one line
naming the models it dropped, also when it dropped every row; an
explicit --min-cost stays silent. The menubar payload's unpricedModels
block, carried since getagentseal#638, now renders on the macOS popover, the
Windows tray and the web dashboard — one secondary line, the wording
the compare view and the MCP tables already use. Desktop is unchanged
(already dim + CoverageCard).
@iamtoruk
iamtoruk merged commit 1f6c384 into getagentseal:main Sep 18, 2026
24 checks passed
ozymandiashh added a commit to ulises-c/codeburn that referenced this pull request Sep 19, 2026
getagentseal#1491 moved the models command's floor and --top slice from
aggregateModels to the call site (unfiltered fetch + local floor + the
unpriced disclosure line). This merge keeps that fetch and applies the
PR's own rule at the floor: --route/--billing is an explicit request
for those rows, so the noise floor lifts for them too, and the
disclosure line only prints when a floor actually dropped something.
@ozymandiashh ozymandiashh added bug Something isn't working area: cli The codeburn CLI and its core parsing/reporting engine area: web-dash The web dashboard area: menubar The macOS menubar app area: windows The Windows tray app and Windows-specific behaviour labels Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli The codeburn CLI and its core parsing/reporting engine area: menubar The macOS menubar app area: web-dash The web dashboard area: windows The Windows tray app and Windows-specific behaviour bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

models: usage that prices at $0 is hidden by default — the payload carries unpricedModels, no surface renders it

2 participants