From 208e741ddca1e44202fa8d44add11b5492b8d639 Mon Sep 17 00:00:00 2001 From: Lawrence Chen Date: Mon, 30 Mar 2026 20:58:01 -0700 Subject: [PATCH] Clarify command palette open-state routing test --- cmuxTests/AppDelegateShortcutRoutingTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmuxTests/AppDelegateShortcutRoutingTests.swift b/cmuxTests/AppDelegateShortcutRoutingTests.swift index ff80c175..db922a60 100644 --- a/cmuxTests/AppDelegateShortcutRoutingTests.swift +++ b/cmuxTests/AppDelegateShortcutRoutingTests.swift @@ -2351,8 +2351,8 @@ final class AppDelegateShortcutRoutingTests: XCTestCase { XCTFail("debugMarkCommandPaletteOpenPending is only available in DEBUG") #endif - // Simulate a visibility sync lag/race where AppDelegate does not yet know the palette is open. - appDelegate.setCommandPaletteVisible(false, for: window) + // Model the normal open-palette state so the test reads like the user-facing scenario. + appDelegate.setCommandPaletteVisible(true, for: window) guard let escapeEvent = makeKeyDownEvent( key: "\u{1b}",