Problem
Numeric columns in table output are truncated with ellipsis (e.g., 536,073,…) when the Models column consumes too much width. This is especially visible with non-Claude model names that include provider prefixes (e.g., minimax/minimax-m2.5, qwen/qwen3.5-397b-a17b).
Two related root causes:
-
formatModelName only shortens Claude models — Third-party model names with provider prefixes (e.g., minimax/minimax-m2.5, moonshotai/kimi-k2.5, google/gemma-4-31b-it) are returned unchanged, making the Models column extremely wide and crowding out numeric columns.
-
No maximum cap on Models column width — The Models column can consume all available width, compressing numeric columns to their minimum width (10 chars), which truncates formatted numbers like 13,044,466.
Example (opencode weekly with long model names)
│ 2026-W16 │ - cogito-2.1:671b │ 502,210… │ 1,717,4… │ 0 │ 0 │ 503,928… │ $2.24 │
│ Total │ │ 992,106… │ 3,400,2… │ 97,285 │ 51,273,… │ 1,048,0… │ $32.77 │
After proposed fix (strip provider prefixes + cap Models column at 25 chars)
│ 2026-W16 │ - cogito-2.1:671b │ 13,044,466 │ 125,061 │ 97,285 │ 30,366,617 │ 43,633,429 │ $7.23 │
│ Total │ │ 992,106… │ 3,400,2… │ 97,285 │ 51,273,… │ 1,048,0… │ $32.77 │
Related issues and PRs
Proposed fix
Three changes in packages/terminal/src/table.ts:
- Strip provider prefixes from model names in
formatModelName — e.g., minimax/minimax-m2.5 → minimax-m2.5, qwen/qwen3.5-397b-a17b → qwen3.5-397b-a17b
- Cap Models column at 25 chars in the content-width calculation to prevent it from stealing width from numeric columns
- Increase minimum width for numeric columns from 10 to 13 in the responsive scaling path, ensuring formatted numbers like
13,044,466 (10 chars) have sufficient space
The previous fix (#701) was reverted because it broke compact mode. This approach addresses that concern by capping the Models column width rather than just inflating numeric column minimums.
Problem
Numeric columns in table output are truncated with ellipsis (e.g.,
536,073,…) when the Models column consumes too much width. This is especially visible with non-Claude model names that include provider prefixes (e.g.,minimax/minimax-m2.5,qwen/qwen3.5-397b-a17b).Two related root causes:
formatModelNameonly shortens Claude models — Third-party model names with provider prefixes (e.g.,minimax/minimax-m2.5,moonshotai/kimi-k2.5,google/gemma-4-31b-it) are returned unchanged, making the Models column extremely wide and crowding out numeric columns.No maximum cap on Models column width — The Models column can consume all available width, compressing numeric columns to their minimum width (10 chars), which truncates formatted numbers like
13,044,466.Example (opencode weekly with long model names)
After proposed fix (strip provider prefixes + cap Models column at 25 chars)
Related issues and PRs
ccusage monthlyoutput truncates token numbers with ellipsis #700 — Original bug report:ccusage monthlytruncates token numbers with ellipsisProposed fix
Three changes in
packages/terminal/src/table.ts:formatModelName— e.g.,minimax/minimax-m2.5→minimax-m2.5,qwen/qwen3.5-397b-a17b→qwen3.5-397b-a17b13,044,466(10 chars) have sufficient spaceThe previous fix (#701) was reverted because it broke compact mode. This approach addresses that concern by capping the Models column width rather than just inflating numeric column minimums.