feat(cli): improve model usage layout - #12106
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b6b55d1a34
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <box width={9} flexShrink={0} justifyContent="flex-end"> | ||
| <text fg={theme().textMuted}>{formatCost(model.cost)}</text> |
There was a problem hiding this comment.
Widen the cost column before fixing its width
For models whose formatted cost is longer than 9 cells, this fixed-width box cannot display the value that formatCost returns. This happens for realistic values such as tiny nonzero costs (<$0.000001, 10 characters) or costs with six fractional digits at $10+, so the new compact row can clip or overflow the cost where the previous layout showed the full value; either reserve enough width or shorten the formatted value before putting it in the fixed column.
Useful? React with 👍 / 👎.
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Fix these issues in Kilo Cloud Files Reviewed (1 files)
Previous Review Summary (commit b6b55d1)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit b6b55d1)Status: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Fix these issues in Kilo Cloud Files Reviewed (2 files)
Reviewed by gpt-5.6-sol · Input: 32.9K · Output: 5.2K · Cached: 165.6K Review guidance: REVIEW.md from base branch |
feat(cli): improve model usage layout
Summary
Make session model usage easier to scan and selectively inspect in the CLI sidebar.
Why this change is needed
Model statistics were presented as several wrapped lines with inline separators. In sessions using multiple models, costs and step counts were difficult to compare, and the section consumed substantial sidebar space even when users did not need it.
How this is addressed
Before and after
Before:
After:
Expanded model:
Human Verification
The implementation received a focused local code review covering logic, type safety, security, resource management, data safety, and SolidJS/OpenTUI patterns. No actionable issues were found.
Reviewer Notes
Human Reviewer Flags
Code Reviewer Agent
Code Reviewer Notes
Locale.truncateutility and established sidebar▶/▼disclosure pattern.