feat: make it easier to toggle on/off paste summary in the tui (#24869)

This commit is contained in:
Aiden Cline
2026-04-28 23:55:14 -05:00
committed by GitHub
parent a8c74c04de
commit 504ca3d3d8
2 changed files with 17 additions and 1 deletions

View File

@@ -1209,7 +1209,7 @@ export function Prompt(props: PromptProps) {
const lineCount = (pastedContent.match(/\n/g)?.length ?? 0) + 1
if (
(lineCount >= 3 || pastedContent.length > 150) &&
!sync.data.config.experimental?.disable_paste_summary
kv.get("paste_summary_enabled", !sync.data.config.experimental?.disable_paste_summary)
) {
pasteText(pastedContent, `[Pasted ~${lineCount} lines]`)
return