fix(tui): make verbose mode control raw streaming and tool output

This commit is contained in:
William Valentin
2026-02-16 23:45:28 -08:00
parent 9fbd866435
commit 18da9ddf90
+3 -1
View File
@@ -9,6 +9,7 @@ export interface MessageListProps {
messages: Message[];
scrollOffset?: number;
streamingContent?: string;
verbose?: boolean;
}
// Helper to format timestamp in human-readable way
@@ -72,6 +73,7 @@ export const MessageList = memo(function MessageList({
messages,
scrollOffset = 0,
streamingContent,
verbose = false,
}: MessageListProps): React.ReactElement {
const visibleMessages = messages.slice(scrollOffset);
@@ -103,7 +105,7 @@ export const MessageList = memo(function MessageList({
<Box marginBottom={1}>
<Text color="#ff8c00" bold>Flynn</Text>
</Box>
<Text wrap="wrap">{streamingContent}</Text>
<Text wrap="wrap">{verbose ? streamingContent : renderMarkdown(streamingContent)}</Text>
<Text color="yellow"></Text>
</Box>
</Box>