test(tui): remove stale turn freeze experiment

This commit is contained in:
Brooklyn Nicholson
2026-04-26 15:35:41 -05:00
parent cee4036e8b
commit 64de685d3f

View File

@@ -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')
})
})