소스 검색

fix: dont paste collapse if in bash mode (#2482)

Aiden Cline 1 년 전
부모
커밋
4d481dea7e
1개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/tui/internal/components/chat/editor.go

+ 3 - 0
packages/tui/internal/components/chat/editor.go

@@ -659,6 +659,9 @@ func (m *editorComponent) getExitKeyText() string {
 
 // shouldSummarizePastedText determines if pasted text should be summarized
 func (m *editorComponent) shouldSummarizePastedText(text string) bool {
+	if m.app.IsBashMode {
+		return false
+	}
 	lines := strings.Split(text, "\n")
 	lineCount := len(lines)
 	charCount := len(text)