Repository navigation
fix: name the usage that prices at $0 instead of hiding it (#1420) - #1491
Merged
iamtoruk merged 1 commit intoSep 18, 2026
Merged
Conversation
…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).
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.
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:— 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-costis the user's own cut and prints nothing;--format json|csv|markdownstay machine-clean. The floor and the--topslice 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) beforefindUnpricedModels, 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
unpricedModelssince #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: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 asdecodeIfPresent ?? []declared last with a default, so older payloads render exactly as before.ModelsSection): a secondtokens-line-style footnote; ids and call counts in the row tooltip. The payload mirror type gains the field.Top modelspanel): a footnote line under the table ("count unknown, not zero", with themodel-alias/price-overridepointer), passed throughnormalizePayloadwhich rebuildscurrentfield by field.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.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 buildclean; the newModelsSectionUnpricedLineTests(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 --noEmitclean at root, inwindows/and indash/.Not in scope, per the issue: #1364 (the gateway's own pricing rows), #969 (warning truncation), #968 (flat-rate false positives).