mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: little box typey thing
This commit is contained in:
parent
8efd3db1b4
commit
4b026d6761
6 changed files with 142 additions and 62 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue