mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
feat(tui): collapse completed todo panel on turn end
This commit is contained in:
parent
cb7cfba6de
commit
2259eac49e
6 changed files with 22 additions and 4 deletions
|
|
@ -38,7 +38,14 @@ export const MessageLine = memo(function MessageLine({
|
|||
const thinking = msg.thinking?.trim() ?? ''
|
||||
|
||||
if (msg.kind === 'trail' && msg.todos?.length) {
|
||||
return <TodoPanel incomplete={msg.todoIncomplete} t={t} todos={msg.todos} />
|
||||
return (
|
||||
<TodoPanel
|
||||
defaultCollapsed={msg.todoCollapsedByDefault}
|
||||
incomplete={msg.todoIncomplete}
|
||||
t={t}
|
||||
todos={msg.todos}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
if (msg.kind === 'trail' && (msg.tools?.length || tools.length || thinking)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue