summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-04 11:29:12 -0600
committerAiden Cline <[email protected]>2025-11-04 11:29:12 -0600
commit2af3f19397b83badd59fcbbb5fff1657d344bf10 (patch)
treee93299520dd4a70057ae3f968bd995b7096fe13e
parent927566586850717aa3f722170f04652723049f07 (diff)
downloadopencode-2af3f19397b83badd59fcbbb5fff1657d344bf10.tar.gz
opencode-2af3f19397b83badd59fcbbb5fff1657d344bf10.zip
respect: disable_paste_summary
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index 591fecc6b..7835539ed 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -643,7 +643,7 @@ export function Prompt(props: PromptProps) {
} catch {}
const lineCount = (pastedContent.match(/\n/g)?.length ?? 0) + 1
- if (lineCount >= 5) {
+ if (lineCount >= 5 && !sync.data.config.experimental?.disable_paste_summary) {
event.preventDefault()
const currentOffset = input.visualCursor.offset
const virtualText = `[Pasted ~${lineCount} lines]`