mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +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
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue