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[];
|
messages: Message[];
|
||||||
scrollOffset?: number;
|
scrollOffset?: number;
|
||||||
streamingContent?: string;
|
streamingContent?: string;
|
||||||
|
verbose?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper to format timestamp in human-readable way
|
// Helper to format timestamp in human-readable way
|
||||||
@@ -72,6 +73,7 @@ export const MessageList = memo(function MessageList({
|
|||||||
messages,
|
messages,
|
||||||
scrollOffset = 0,
|
scrollOffset = 0,
|
||||||
streamingContent,
|
streamingContent,
|
||||||
|
verbose = false,
|
||||||
}: MessageListProps): React.ReactElement {
|
}: MessageListProps): React.ReactElement {
|
||||||
const visibleMessages = messages.slice(scrollOffset);
|
const visibleMessages = messages.slice(scrollOffset);
|
||||||
|
|
||||||
@@ -103,7 +105,7 @@ export const MessageList = memo(function MessageList({
|
|||||||
<Box marginBottom={1}>
|
<Box marginBottom={1}>
|
||||||
<Text color="#ff8c00" bold>Flynn</Text>
|
<Text color="#ff8c00" bold>Flynn</Text>
|
||||||
</Box>
|
</Box>
|
||||||
<Text wrap="wrap">{streamingContent}</Text>
|
<Text wrap="wrap">{verbose ? streamingContent : renderMarkdown(streamingContent)}</Text>
|
||||||
<Text color="yellow">▌</Text>
|
<Text color="yellow">▌</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user