summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/HistoryDisplay.tsx
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-04-18 18:08:43 -0400
committerN. Taylor Mullen <[email protected]>2025-04-18 18:10:57 -0400
commit383b9177848eeefb8c123a7a7ecc0ee391380eea (patch)
tree4b1e06d5e74500ad81a61f9442581648063f86c0 /packages/cli/src/ui/components/HistoryDisplay.tsx
parentfa264e42863474a809d06ef569f7ad5388d48072 (diff)
Run `npm run format`
- This has the entirety of the changes. Part of https://b.corp.google.com/issues/411720532
Diffstat (limited to 'packages/cli/src/ui/components/HistoryDisplay.tsx')
-rw-r--r--packages/cli/src/ui/components/HistoryDisplay.tsx37
1 files changed, 17 insertions, 20 deletions
diff --git a/packages/cli/src/ui/components/HistoryDisplay.tsx b/packages/cli/src/ui/components/HistoryDisplay.tsx
index fe0bf4c1..7565c5bc 100644
--- a/packages/cli/src/ui/components/HistoryDisplay.tsx
+++ b/packages/cli/src/ui/components/HistoryDisplay.tsx
@@ -17,26 +17,23 @@ interface HistoryDisplayProps {
const HistoryDisplay: React.FC<HistoryDisplayProps> = ({
history,
onSubmit,
-}) =>
+}) => (
// No grouping logic needed here anymore
- (
- <Box flexDirection="column">
- {history.map((item) => (
- <Box key={item.id} marginBottom={1}>
- {/* Render standard message types */}
- {item.type === 'user' && <UserMessage text={item.text} />}
- {item.type === 'gemini' && <GeminiMessage text={item.text} />}
- {item.type === 'info' && <InfoMessage text={item.text} />}
- {item.type === 'error' && <ErrorMessage text={item.text} />}
-
- {/* Render the tool group component */}
- {item.type === 'tool_group' && (
- <ToolGroupMessage toolCalls={item.tools} onSubmit={onSubmit} />
- )}
- </Box>
- ))}
- </Box>
- )
-;
+ <Box flexDirection="column">
+ {history.map((item) => (
+ <Box key={item.id} marginBottom={1}>
+ {/* Render standard message types */}
+ {item.type === 'user' && <UserMessage text={item.text} />}
+ {item.type === 'gemini' && <GeminiMessage text={item.text} />}
+ {item.type === 'info' && <InfoMessage text={item.text} />}
+ {item.type === 'error' && <ErrorMessage text={item.text} />}
+ {/* Render the tool group component */}
+ {item.type === 'tool_group' && (
+ <ToolGroupMessage toolCalls={item.tools} onSubmit={onSubmit} />
+ )}
+ </Box>
+ ))}
+ </Box>
+);
export default HistoryDisplay;