Skip to content

fix(cli): make multiline input height and paste collapse configurable#12389

Closed
Johannnnn506 wants to merge 1 commit into
NousResearch:mainfrom
Johannnnn506:fix/cli-multiline-input-paste
Closed

fix(cli): make multiline input height and paste collapse configurable#12389
Johannnnn506 wants to merge 1 commit into
NousResearch:mainfrom
Johannnnn506:fix/cli-multiline-input-paste

Conversation

@Johannnnn506

Copy link
Copy Markdown
Contributor

Summary

  • add display.input_max_lines so the prompt_toolkit input box can grow past the hard-coded 8-line cap
  • add display.collapse_large_pastes so users can keep large pasted text editable in the input buffer instead of collapsing it into a temp-file placeholder
  • keep the fallback paste-collapse path based on newly added lines, and add regression tests for config parsing and multiline paste behavior

Why

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

@wilsonchengassistant wilsonchengassistant left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 23, 2026
@Johannnnn506 Johannnnn506 closed this by deleting the head repository Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants