mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 08:03:28 +00:00
test(terminal): note where the xterm gate-order double is pinned for real
The unit double encodes RenderService's paused-then-latch gate order, which can drift on an xterm upgrade. Point at the e2e oracle that pins the same order against the real renderer, so a future upgrade has a trail to the authoritative check. Refs STA-2694. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -16,8 +16,10 @@ import type { ManagedPaneInternal } from './pane-manager-types'
|
||||
|
||||
type GateState = { synchronizedOutput: boolean; rendered: number }
|
||||
|
||||
// Mirrors RenderService.refreshRows (RenderService.ts:155-181): paused first,
|
||||
// then the synchronized-output buffer gate, then the actual render.
|
||||
// Mirrors RenderService.refreshRows: paused first, then the synchronized-output
|
||||
// buffer gate, then the actual render. This double can drift from xterm on an
|
||||
// upgrade, so the gate order it encodes is independently pinned against the real
|
||||
// renderer in tests/e2e/terminal-reveal-draw-command-probe.spec.ts.
|
||||
function createGatedPane(options: { synchronizedOutput: boolean }): {
|
||||
pane: ManagedPaneInternal
|
||||
gate: GateState
|
||||
|
||||
Reference in New Issue
Block a user