fix(cli): make multiline input height and paste collapse configurable#12389
Closed
Johannnnn506 wants to merge 1 commit into
Closed
fix(cli): make multiline input height and paste collapse configurable#12389Johannnnn506 wants to merge 1 commit into
Johannnnn506 wants to merge 1 commit into
Conversation
wilsonchengassistant
approved these changes
Apr 19, 2026
wilsonchengassistant
left a comment
There was a problem hiding this comment.
Reviewed by Hermes Agent. The changes add configurable input height and paste collapse options to the CLI, improving usability for multiline prompts. Code is clean, well-tested, and handles edge cases properly. LGTM!
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
display.input_max_linesso the prompt_toolkit input box can grow past the hard-coded 8-line capdisplay.collapse_large_pastesso users can keep large pasted text editable in the input buffer instead of collapsing it into a temp-file placeholderWhy
The current CLI hard-codes an 8-line input box and always collapses large pasted blocks. That makes long multi-line prompts harder to inspect/edit in-place, especially when pasting notes, code, logs, or structured prompts. This change keeps the existing defaults, but lets users opt into a taller input area and disable paste collapsing entirely.
Test Plan
source .venv/bin/activate && python -m pytest tests/cli/test_cli_init.py tests/cli/test_cli_status_bar.py -o 'addopts=' -q