Skip to content

feat: configurable paste collapse thresholds + input scroll indicators #5626

@iRonin

Description

@iRonin

Problem

Paste collapse

When pasting text into the prompt, Hermes collapses it to a file reference at a hardcoded 5-line threshold. This isn't configurable and the fallback heuristic (for terminals without bracketed paste) replaces the entire buffer — losing any prompt text the user had typed — with no way to disable it.

Scroll indicators

The input area caps at 8 lines with internal scrolling, but there's no visual indication that content exists above or below the visible viewport when the content overflows.

Proposed Solution

Paste collapse thresholds

  • paste_collapse_threshold (default: 5) — configurable threshold for bracketed paste (safe: appends)
  • paste_collapse_threshold_fallback (default: 0) — configurable threshold for the fallback heuristic (destructive: replaces buffer), disabled by default

Scroll indicators

  • on top border when cursor is scrolled past visual top
  • on bottom border when there's content below the visible area

Related PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions