We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e64e776 commit dcbd7f9Copy full SHA for dcbd7f9
src/ui/History.tsx
@@ -1,5 +1,5 @@
1
// src/ui/History.tsx
2
-import { Box, Static } from "ink";
+import { Box } from "ink";
3
import React from "react";
4
import { useStore } from "@/agent/state.js";
5
import { HistoryItemDisplay } from "./HistoryItemDisplay.js";
@@ -9,13 +9,11 @@ export function History() {
9
10
return (
11
<Box flexDirection="column" flexGrow={1} paddingX={1}>
12
- <Static items={history}>
13
- {(message) => (
14
- <Box key={message.id}>
15
- <HistoryItemDisplay message={message} />
16
- </Box>
17
- )}
18
- </Static>
+ {history.map((message) => (
+ <Box key={message.id}>
+ <HistoryItemDisplay message={message} />
+ </Box>
+ ))}
19
</Box>
20
);
21
}
0 commit comments