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:
Neil
2026-07-27 13:30:49 -07:00
co-authored by Orca
parent 15a6ebaf77
commit 8397dfeb3e
@@ -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