Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 2af3f19

Browse files
committed
respect: disable_paste_summary
1 parent 9275665 commit 2af3f19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/component/prompt

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ export function Prompt(props: PromptProps) {
643643
} catch {}
644644

645645
const lineCount = (pastedContent.match(/\n/g)?.length ?? 0) + 1
646-
if (lineCount >= 5) {
646+
if (lineCount >= 5 && !sync.data.config.experimental?.disable_paste_summary) {
647647
event.preventDefault()
648648
const currentOffset = input.visualCursor.offset
649649
const virtualText = `[Pasted ~${lineCount} lines]`

0 commit comments

Comments
 (0)