Repository navigation
fix(models): make unpriced guidance actionable - #996
Merged
iamtoruk merged 5 commits intoAug 18, 2026
Merged
Conversation
avs-io
force-pushed
the
codex/issue-969-unpriced-reconcile
branch
from
August 13, 2026 22:35
3d6d180 to
02ddc3c
Compare
Resolve src/main.ts to main's #1016 rank-map --unpriced/--top implementation and drop this branch's inline comparator and topN hunk entirely.
… narrow warning The unpriced-models pointer told every user to run `codeburn model-alias`. A subscription or flat-rate model is correctly $0, and mapping it onto another model's per-token rate invents spend that was never billed (#968), so the hint now states the condition instead of the instruction. `sanitizeModelForDisplay` guarded only the `--unpriced` path, leaving every other command and format rendering provider-supplied IDs unfiltered. It moves to the `formatModel` closures in models-report and audit-report, the two sites every renderer routes through, covering the raw-ID fallback as well. The `--unpriced` override stays: it bypasses that path deliberately, because `model-alias` keys on the raw ID, not the friendly name. README says so. Below 45 columns of panel the dashboard warning dropped its marker and count and printed a bare command, so a narrow terminal gave no signal that anything was wrong. `! N: codeburn models --unpriced` is 31 characters and fits.
iamtoruk
marked this pull request as ready for review
August 18, 2026 17:00
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.
Problem
The dashboard's unpriced-model warning is truncated in narrow terminals and its suggested command cannot be copied from the alternate-screen TUI. Users cannot reliably identify every affected raw model ID or run the remediation.
Root cause
The dashboard tried to fit model details and a fix hint inside a fixed-width panel. The plain
modelsreport had no dedicated unpriced filter, and applying normal--topor minimum-cost behavior before identifying unpriced rows could hide the rows users needed.Change
codeburn models --unpricedas a copyable plain-output path.--top, while preserving an explicit--min-costthreshold.This branch preserves the original contribution and authorship from #985, then adds the dashboard, safety, ordering, and narrow-terminal completion needed to close the issue.
User impact
Users can copy every unpriced model ID from normal terminal output and the dashboard always points to a complete runnable command, even in narrow terminals.
Preservation and out of scope
modelsoutput and its one-cent default remain unchanged without--unpriced.--min-costand--topoptions remain authoritative.Testing
Fixes #969.