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

@ -93,7 +93,13 @@ describe('createGatewayEventHandler', () => {
onEvent({ payload: { text: 'done' }, type: 'message.complete' } as any)
expect(getTurnState().todos).toEqual([])
expect(appended).toContainEqual({ kind: 'trail', role: 'system', text: '', todos })
expect(appended).toContainEqual({
kind: 'trail',
role: 'system',
text: '',
todoCollapsedByDefault: true,
todos
})
})
it('keeps the current todo list visible when the next message starts', () => {