You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reopen the command palette through its in-app Commands button in the multi-step setting test. Keep real Mod+K coverage in the dedicated keybinding test immediately below it.
In plain English: Ubuntu desktop CI runs four Electron windows on one shared display. The setting test does not need a second focus-sensitive shortcut assertion before it can test debug-panel arguments; a neighboring test already owns that behavior and explicitly focuses the editor first.
This disproved stale keymap-scope and delayed transition-cleanup hypotheses. page.bringToFront() also proved insufficient: it passed once, then the clean main rerun lost focus again before the key event.
All speculative product changes and temporary instrumentation are removed.
Test goal / intent
Setting-flow test: prove the command palette can change the debug-panel setting and move between its arguments.
Dedicated keybinding test: prove Mod+K opens and focuses the palette from the code editor.
The tests now express those goals independently instead of making the setting flow depend on a second shared-window shortcut assertion.
Validation
Biome formatting, ESLint, and git diff --check pass for the final changed test.
Existing diagnostics prove the failure is before app keymap dispatch, not inside the command machine.
Two independent four-worker Ubuntu shard 1 runs passed both relevant tests in their initial batches. Each ended with 41 passed and no --last-failed phase.
First-run desktop validation passed. Plain-English goal: ensure the Electron window owned by this test is active before verifying its window-level Mod+K shortcut. The exact scenario passed in the initial four-worker Ubuntu batch in 5.4 seconds; the shard retry ran only an unrelated -XY sketch test. Evidence: https://github.com/KittyCAD/modeling-app/actions/runs/33320795024/job/99282979477
JordanNoone
changed the title
Focus Electron window before command-palette shortcut test
Separate command-bar setting and shortcut coverage
Aug 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Reopen the command palette through its in-app Commands button in the multi-step setting test. Keep real Mod+K coverage in the dedicated keybinding test immediately below it.
In plain English: Ubuntu desktop CI runs four Electron windows on one shared display. The setting test does not need a second focus-sensitive shortcut assertion before it can test debug-panel arguments; a neighboring test already owns that behavior and explicitly focuses the editor first.
Fixes #13468.
Why
The affected setting test failed on its first execution in all seven sampled hourly Ubuntu runs, then passed under the isolated
--last-failedretry.Temporary capture-phase logging established the boundary:
Closed.command-palette.openand the machine enteredSelecting command.Diagnostic evidence: https://github.com/KittyCAD/modeling-app/actions/runs/33320150808/job/99281435652
This disproved stale keymap-scope and delayed transition-cleanup hypotheses.
page.bringToFront()also proved insufficient: it passed once, then the cleanmainrerun lost focus again before the key event.Bring-to-front counterexample: https://github.com/KittyCAD/modeling-app/actions/runs/33321342642/job/99283913271
All speculative product changes and temporary instrumentation are removed.
Test goal / intent
The tests now express those goals independently instead of making the setting flow depend on a second shared-window shortcut assertion.
Validation
git diff --checkpass for the final changed test.41 passedand no--last-failedphase.main, with one changed test file.