Repository navigation
fix: bound the prompt bar by wrapped rows and name the monthly cost default once - #470
Merged
Merged
Conversation
The settings reader's fallback, the Limits view's fallback and the reader test read MONTHLY_DEFAULT from its own leaf module, and node scripts/check.ts fails when the manifest's declared default and the constant differ. Refs: #454
Given the render's viewport, the bar is the prompt's wrapped row count against a quarter of the panel's inner width, clamped to one row per character plus three. With no viewport it keeps the character-count length. Refs: #453
…odule Name the quarter-row factor in the prompt panel's bar as FILL beside CHROME, make CHROME's comment add up to its 5 cells, and state the one-row-per-character bound once. Rename ctui/hooks/monthly.ts to monthly-default.ts so it no longer reads like month.ts, and drop the clamp test's widths no terminal session sends. Refs: #453 Refs: #454
This was referenced Oct 24, 2026
Merged
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.
What changed
The prompt panel's
┃bar is now as long as the prompt can be once wrapped, not one row per character. The monthly cost default is named once, and the check ties the manifest to it.Refs: #450, #451, #453, #454
Summary
Prompt panel bar (#453), in
ctui/hooks/skin/user.tsx.columnscomes from theUserMessagerender's viewport:Monthly cost default (#454):
ctui/hooks/ +├── monthly-default.ts # MONTHLY_DEFAULT = 100, nothing else ├── config.ts # reader fallback → MONTHLY_DEFAULT ctui/plugins/limits/ # view fallback → MONTHLY_DEFAULT scripts/check.ts # + plugin.json default must equal MONTHLY_DEFAULTEvidence
After:
node scripts/check.tsexits 0. New tests intests/rewrites.test.tsx:the limits_cost_monthly default in plugin.json and MONTHLY_DEFAULT in ctui/hooks/monthly-default.ts differ: [150] vs [100].Merge Danger
Door: two-way
The bar's new length is never longer than the old one, and still reaches the panel's bottom row. A short prompt's bar shrinks, for example from 9 rows to 4, but the panel is only 3 rows tall, so the look doesn't change. The default value, its floor and its title are unchanged.
Blast Radius: prompt-panel
Reports
Live checks
N/A
Evals
N/A