{{ message }}
fix(tui): dynamically expand DialogModel size based on terminal width - #47599
Open
hazyhaar wants to merge 1 commit into
Open
fix(tui): dynamically expand DialogModel size based on terminal width#47599hazyhaar wants to merge 1 commit into
hazyhaar wants to merge 1 commit into
Conversation
Contributor
Contributor
hazyhaar
force-pushed
the
fix/tui-dialog-model-width
branch
from
September 6, 2026 10:31
3b5f2d7 to
0a7c21d
Compare
hazyhaar
force-pushed
the
fix/tui-dialog-model-width
branch
from
September 6, 2026 11:10
0a7c21d to
5de7f62
Compare
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.

Issue for this PR
Closes #47600
Type of change
What does this PR do?
In the TUI,
DialogModelcurrently defaults tosize: "medium"(60 columns) because it does not set its size. On wide terminals, this causes the model name to be heavily truncated whenever the provider footer takes up 35+ columns.This PR adds responsive sizing via
useTerminalDimensions()andcreateEffect(), matching the sizing behavior inpackages/tui/src/feature-plugins/system/plugins.tsx:xlarge(116 columns) when terminal width >= 128large(88 columns) when terminal width >= 96medium(60 columns) as baselineHow did you verify your code works?
Verified in TUI with terminal widths of 80, 100, 140, and 180 columns. The dialog expands dynamically and preserves the full visibility of model names and provider footers without truncation.
Screenshots / recordings
Before: model names truncated to ~16 chars.
After: dialog dynamically uses large/xlarge width when terminal allows, showing full model identifiers and footers.
Checklist