From 057d78b0d6ea4ae26bee2f6b9568b5206ec88c48 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Wed, 8 Jul 2026 22:01:22 -0700 Subject: [PATCH] Add types to isMouseReport in terminal reattach leak test Explicitly annotate parameter and return types for the isMouseReport helper function inside the page.evaluate block. --- tests/e2e/terminal-reattach-mouse-mode-leak.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/terminal-reattach-mouse-mode-leak.spec.ts b/tests/e2e/terminal-reattach-mouse-mode-leak.spec.ts index 021ad83cefb..e37f95e0372 100644 --- a/tests/e2e/terminal-reattach-mouse-mode-leak.spec.ts +++ b/tests/e2e/terminal-reattach-mouse-mode-leak.spec.ts @@ -154,7 +154,7 @@ test.describe('reattach mouse-mode leak', () => { const probe = await secondLaunch.page.evaluate(async () => { // An SGR mouse report is `ESC [ < params (M|m)`; the `ESC [ <` prefix is // unambiguous, so substring matching avoids a control-char regex. - const isMouseReport = (data) => data.includes('\x1b[<') + const isMouseReport = (data: string): boolean => data.includes('\x1b[<') const state = window.__store?.getState() const worktreeId = state?.activeWorktreeId const tabId =