fix: little box typey thing

This commit is contained in:
Brooklyn Nicholson 2026-04-12 16:31:30 -05:00
parent 8efd3db1b4
commit 4b026d6761
6 changed files with 142 additions and 62 deletions

View file

@ -20,6 +20,14 @@ export const MessageLine = memo(function MessageLine({
msg: Msg
t: Theme
}) {
if (msg.kind === 'trail' && msg.tools?.length) {
return (
<Box flexDirection="column" marginTop={1}>
<ToolTrail t={t} trail={msg.tools} />
</Box>
)
}
if (msg.role === 'tool') {
const preview = compactPreview(hasAnsi(msg.text) ? stripAnsi(msg.text) : msg.text, Math.max(24, cols - 14))