test: require cursor reset before same-turn repaint negative (#29722)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-16 08:13:49 -07:00
committed by GitHub
co-authored by OrcaWin
parent fc26e27591
commit 41beb2d0a3
@@ -367,6 +367,10 @@ export function registerPtyConnectionWindowsKeyboardResetTests(): void {
stateHistory: []
}
notifyStoreSubscribers()
expect(pane.terminal.write).toHaveBeenCalledWith(
RESET_TERMINAL_CURSOR_STYLE,
expect.any(Function)
)
const writesAfterDone = (pane.terminal.write as ReturnType<typeof vi.fn>).mock.calls.length
mockStoreState.agentStatusByPaneKey[paneKey] = {