feat(tui): collapse completed todo panel on turn end

This commit is contained in:
Brooklyn Nicholson 2026-04-26 16:24:15 -05:00
parent cb7cfba6de
commit 2259eac49e
6 changed files with 22 additions and 4 deletions

View file

@ -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)) {