Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…on the window Switch Project… from the palette opened a New tab whose launch screen took no keys until clicked; the tab bar's + did. The window now hands the keyboard to the launch screen whenever the New tab shows with nothing over it and focus sits on the window itself (or nowhere). Decisions: - A render-time guard (`keep_new_tab_keys`) rather than another focus call in the palette path. The palette path in the test window (typed query + Return, real dispatch with the tap off) already lands the keys on the launch screen, so the exact steal on Omarchy/Wayland wasn't reproducible here; the guard covers any path that leaves the keys on the window, which is what "dead until clicked" means. - The guard stands aside while the palette, the tab menu or a modal dialog is up, since those deliberately hold focus on the window. It only ever moves focus off the window root, never off a focused child (the launch screen's own Connect dialog keeps its keys). - Tests: the palette's Switch Project… end to end, and the keys put back on the window while the New tab shows (fails without the guard), plus the palette over the New tab keeping its keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jlong
force-pushed
the
jlong/desktop-a-new-tab-opened-from-the-palette-s-switch-project-takes-no-keys
branch
from
November 27, 2026 02:41
c76bb29 to
de7600f
Compare
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Found in the
dl-paritywalk on Omarchy: Switch Project… from the palette added a New tab showing the launch screen, but ↑/↓, Return and Esc did nothing until the screen was clicked. The tab bar's+didn't have this problem.Now, whenever the New tab shows with nothing over it and the keys sit on the window itself (or nowhere), the window hands them to the launch screen.
Technical details
ShelbiWindow::keep_new_tab_keys(desktop/src/app.rs) runs where the New tab's launch screen is placed in the window's render. It only moves focus off the window root, never off a focused child: the launch screen's own Connect dialog keeps its keys.QA checklist
+still opens a New tab that takes keys.cargo testindesktop/:switch_project_from_the_palette_gives_the_new_tab_the_keysandkeys_left_on_the_window_go_back_to_the_new_tabpass. The second fails without the guard.🤖 Generated with Claude Code
Auto-opened by Shelbi — review at: /home/jlong/.shelbi/projects/shelbi/tasks/desktop-a-new-tab-opened-from-the-palette-s-switch-project-takes-no-keys.md