Просмотр исходного кода

respect: disable_paste_summary

Aiden Cline 3 месяцев назад
Родитель
Сommit
2af3f19397
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

+ 1 - 1
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]`