From 41beb2d0a3fc5da4b4066fbc5215c1a4bb6bea7b Mon Sep 17 00:00:00 2001 From: OrcaWin Date: Fri, 16 Oct 2026 08:13:49 -0700 Subject: [PATCH] test: require cursor reset before same-turn repaint negative (#29722) Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com> --- .../pty-connection-windows-keyboard-reset.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/src/components/terminal-pane/pty-connection-windows-keyboard-reset.spec.ts b/src/renderer/src/components/terminal-pane/pty-connection-windows-keyboard-reset.spec.ts index 397aef7c4de..e744c5d3fca 100644 --- a/src/renderer/src/components/terminal-pane/pty-connection-windows-keyboard-reset.spec.ts +++ b/src/renderer/src/components/terminal-pane/pty-connection-windows-keyboard-reset.spec.ts @@ -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).mock.calls.length mockStoreState.agentStatusByPaneKey[paneKey] = {