feat: configurable paste collapse thresholds (TUI + CLI)

Adds two new config keys:
- paste_collapse_threshold (default: 5) — line count threshold for
  bracketed paste collapse in both TUI and CLI
- paste_collapse_threshold_fallback (default: 0, disabled) — same for
  the fallback heuristic in terminals without bracketed paste support

TUI frontend reads these from config.get full via applyDisplay/patchUiState.
CLI reads from self.config at paste-handling time.

Closes #5626
Related: #5623
This commit is contained in:
kylekahraman
2026-05-25 06:23:18 -07:00
committed by Teknium
parent 973bb124a4
commit ab42658dfc
8 changed files with 35 additions and 7 deletions
+2
View File
@@ -105,6 +105,8 @@ export interface UiState {
info: null | SessionInfo
inlineDiffs: boolean
mouseTracking: MouseTrackingMode
pasteCollapseLines: number
sections: SectionVisibility
showCost: boolean
showReasoning: boolean