mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
test(tui): remove stale turn freeze experiment
This commit is contained in:
parent
cee4036e8b
commit
64de685d3f
1 changed files with 0 additions and 27 deletions
|
|
@ -1,27 +0,0 @@
|
||||||
import { describe, expect, it } from 'vitest'
|
|
||||||
|
|
||||||
import {
|
|
||||||
freezeTurnRendering,
|
|
||||||
getRenderableTurnState,
|
|
||||||
patchTurnState,
|
|
||||||
resetTurnState,
|
|
||||||
unfreezeTurnRendering
|
|
||||||
} from '../app/turnStore.js'
|
|
||||||
|
|
||||||
describe('turn render freezing', () => {
|
|
||||||
it('holds the render snapshot stable while live turn state keeps changing', () => {
|
|
||||||
resetTurnState()
|
|
||||||
patchTurnState({ streaming: 'before scroll' })
|
|
||||||
freezeTurnRendering()
|
|
||||||
|
|
||||||
patchTurnState({ reasoning: 'new thinking', streaming: 'new streamed text' })
|
|
||||||
|
|
||||||
expect(getRenderableTurnState().streaming).toBe('before scroll')
|
|
||||||
expect(getRenderableTurnState().reasoning).toBe('')
|
|
||||||
|
|
||||||
unfreezeTurnRendering()
|
|
||||||
|
|
||||||
expect(getRenderableTurnState().streaming).toBe('new streamed text')
|
|
||||||
expect(getRenderableTurnState().reasoning).toBe('new thinking')
|
|
||||||
})
|
|
||||||
})
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue