feat(tui): add scrollbar, configurable input height, and display options#10834
Closed
nicoechaniz wants to merge 1 commit into
Closed
feat(tui): add scrollbar, configurable input height, and display options#10834nicoechaniz wants to merge 1 commit into
nicoechaniz wants to merge 1 commit into
Conversation
7d87ccd to
e577b02
Compare
e577b02 to
d02e15f
Compare
Contributor
Author
|
Hi @teknium1 — this adds scrollbar support and configurable input height to the TUI composer. Rebased on latest main and ready for review when you have a moment. Thanks! |
This was referenced Apr 26, 2026
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.
Summary
Adds small but high-impact quality-of-life improvements to the terminal input area, all behind new
tuiconfig options with backward-compatible defaults.Closes #10418
Closes #5626
What's new
1. Scrollbar in the input area
TextAreanow hasscrollbar=True, making it easier to navigate long multi-line prompts.2. Configurable input height
tui.input_max_lines(default:8)30) without the UI clipping.3. Configurable large-paste collapsing
tui.collapse_large_pastes(default:true)false, bracketed-paste and typing-detection paste collapsing is skipped entirely, which is useful for users who prefer inline pastes.4. Optional "empty-input" guard for history navigation
tui.history_nav_requires_empty_input(default:false)true,Up/Downarrows only browse history when the input buffer is empty; otherwise they move the cursor line-by-line. This matches the behavior of many terminal chat clients and prevents accidental history jumps while editing multi-line text.5. Optional full input echo
tui.show_full_input(default:false)true, the user's complete multi-line message is echoed back before the agent runs, instead of the compact● first line (+N lines)preview.Backward compatibility
Every default matches the current behavior, so existing users are unaffected. These are purely opt-in convenience knobs for power users.
Recommended setup to try
This is the config we run and the one that shows off the improvements best:
Related context
These are quality-of-life settings common in other terminal chat interfaces (e.g. aichat, tg-cli, etc.) that users naturally expect to be available.