mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +00:00
feat(tui): anchor todo panel above streaming output
This commit is contained in:
parent
2259eac49e
commit
69ff201050
3 changed files with 11 additions and 3 deletions
|
|
@ -81,6 +81,9 @@ describe('createGatewayEventHandler', () => {
|
|||
|
||||
expect(finalText).toBeDefined()
|
||||
expect(trail).toMatchObject({ kind: 'trail', role: 'system', todos, todoIncomplete: true })
|
||||
// Todo archive must sit ABOVE the final assistant text so the panel
|
||||
// doesn't visibly jump across the final answer at end-of-turn.
|
||||
expect(appended.indexOf(trail!)).toBeLessThan(appended.indexOf(finalText!))
|
||||
expect(getTurnState().todos).toEqual([])
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue