fix(tui): make verbose mode control raw streaming and tool output
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user