Aiden Cline 6 месяцев назад
Родитель
Сommit
7950ae1462
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/tui/internal/components/chat/message.go

+ 2 - 2
packages/tui/internal/components/chat/message.go

@@ -219,7 +219,7 @@ func renderText(
 	switch casted := message.(type) {
 	switch casted := message.(type) {
 	case opencode.AssistantMessage:
 	case opencode.AssistantMessage:
 		ts = time.UnixMilli(int64(casted.Time.Created))
 		ts = time.UnixMilli(int64(casted.Time.Created))
-		content = util.ToMarkdown(text, width+2, t.Background())
+		content = util.ToMarkdown(text, width, t.Background())
 	case opencode.UserMessage:
 	case opencode.UserMessage:
 		ts = time.UnixMilli(int64(casted.Time.Created))
 		ts = time.UnixMilli(int64(casted.Time.Created))
 		base := styles.NewStyle().Foreground(t.Text()).Background(backgroundColor)
 		base := styles.NewStyle().Foreground(t.Text()).Background(backgroundColor)
@@ -302,7 +302,7 @@ func renderText(
 		return renderContentBlock(
 		return renderContentBlock(
 			app,
 			app,
 			content,
 			content,
-			width+2,
+			width,
 			WithNoBorder(),
 			WithNoBorder(),
 			WithBackgroundColor(t.Background()),
 			WithBackgroundColor(t.Background()),
 		)
 		)