From b2b108768134bcaf4c8ab18e2788db4d66e7805d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 17 Mar 2026 23:41:34 +0000 Subject: [PATCH] fix: remove wrapMode that caused garbled text rendering wrapMode='word' was corrupting character display in OpenTUI text components. Removed it from all message views and streaming display. Co-authored-by: Ismail Pelaseyed --- src/ui/app.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/ui/app.tsx b/src/ui/app.tsx index 3e11257..c002789 100644 --- a/src/ui/app.tsx +++ b/src/ui/app.tsx @@ -223,7 +223,9 @@ export function App({ agent, initialMessage }: AppProps) { {showHelp && } {messages.map((msg, i) => ( - + + + ))} {activeToolCalls.length > 0 && ( @@ -242,7 +244,7 @@ export function App({ agent, initialMessage }: AppProps) { {streamContent && ( {"✦ Grok"} - {streamContent} + {streamContent} )} {isProcessing && !streamContent && activeToolCalls.length === 0 && ( @@ -298,7 +300,7 @@ function MessageView({ entry }: { entry: ChatEntry }) { return ( {"❯ You"} - {entry.content} + {entry.content} ); @@ -306,7 +308,7 @@ function MessageView({ entry }: { entry: ChatEntry }) { return ( {"✦ Grok"} - {entry.content} + {entry.content} ); @@ -320,11 +322,7 @@ function MessageView({ entry }: { entry: ChatEntry }) { return ( {`${icon} ${name}`} - {output && ( - - {output} - - )} + {output && {output}} ); }