Skip to content

Unpriced-models warning is truncated at every terminal width, hiding both the model list and the fix command #969

Closed

Description

@therickfactr

Problem

The unpriced-models warning in codeburn report is truncated below usefulness at every terminal width, so neither the affected models nor the fix command can be read from the output.

Evidence

At an 80-column-ish default:

│ ! 3 models unpriced at $0, fix: codeburn model-alias (auto-ge… │

Widening the terminal does not help — the warning lives in a fixed-width panel in the report layout, so at COLUMNS=400 it still clips:

$ COLUMNS=400 codeburn report | grep -i unpriced
│ ! 3 models unpriced at $0, fix: codeburn model-alias (auto-genius, big-pickle, .… │

The third model name is never reachable, and the fix command is cut before its arguments — codeburn model-alias alone is not runnable.

Why it matters

The warning's whole purpose (per #638) is to make unpriced usage actionable in the product itself rather than behind CODEBURN_VERBOSE=1. As rendered, it tells the user a problem exists but withholds both which models are affected and the command to address it. Finding the third name meant reading the daily cache directly, which is the opposite of the intent.

The full renderer produces useful text — it is only the panel that clips it:

Unpriced   3 models at $0: auto-genius (35.3M tok), big-pickle (33.9K tok), …
           Fix: codeburn model-alias "<model>" <known-model>

Suggested direction

Any of these would resolve it; listing options rather than assuming a preference:

  1. Wrap the warning across lines inside the panel instead of clipping, so the model list and the fix line both survive.
  2. Keep the panel line as a short pointer (! 3 models unpriced at $0 — see codeburn models --unpriced) and put the detail behind a command that can print at full width.
  3. Let the warning render full-width outside the fixed panel grid, as the Totals block does.

Option 2 has the side benefit of giving a stable way to list every unpriced model, not just the first three — useful when the count exceeds the +N more cutoff.

Environment: codeburn 0.9.20 (npm), macOS 26.6.1 (25G76) arm64, Node v26.5.0.

Activity

  1. adamkwhite commented on Aug 12, 2026

    @adamkwhite

    Adding a related data point, since it strengthens option 2 in particular.

    Truncation is not the only thing standing between the user and the fix command: in codeburn report the text cannot be selected or copied at all. The TUI takes the alternate screen buffer and raw input, so terminal selection doesn't apply to it. Even a fully-rendered, untruncated codeburn model-alias "<model>" <known-model> has to be retyped by hand.

    That matters more for some findings than for others. optimize emits fix blocks like:

    mv ~/.claude/skills/<name> ~/.claude/skills/.archived/
    mv ~/.claude/skills/<name> ~/.claude/skills/.archived/
    ...
    

    A hand-retyped mv chain is exactly the kind of thing that ends up pointing at the wrong directory.

    The plain-stdout subcommands are unaffected and pipe cleanly — overview, status, optimize, export, audit, models, sessions, doctor all work fine through | tail, | grep, or into a file. codeburn web is also selectable. So the escape hatches exist; they're just not discoverable from inside the TUI where the un-copyable command is being shown.

    This is why option 2 ("keep the panel line as a short pointer ... and put the detail behind a command that can print at full width") solves two problems at once: the full-width command output is both untruncated and copyable, whereas options 1 and 3 fix the truncation while leaving the text just as unreachable.

    Worth considering as a general rule rather than a one-off for the unpriced warning: any actionable command shown in the TUI should be reachable from a non-TUI subcommand, since the TUI can display a command but structurally can't let you take it.

    Environment: codeburn 0.9.20 (npm), Claude Code 2.1.228, Linux/WSL2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions