fix(web): always bind the ⌘K command palette hotkey, including embedded mode - #5569
Merged
github-actions[bot] merged 1 commit intoAug 26, 2026
Conversation
Contributor
|
…ed mode ## Related issue Linear: OMNI-5473 (cmd + k doesn't work in managed for desktop app) ## Summary - The ⌘K palette hotkey was gated off in embedded mode on the theory "⌘K belongs to the host page" (introduced with the palette in #1386). That host ⌘K doesn't exist, so on managed servers the chord was dead everywhere — most visibly in the desktop app, where the embed build is the whole window. - Drop the `isEmbedded` gate: the hotkey now binds in every mode. In the embedded build the host page is still loaded (CSS-hidden in the desktop shell), so the listener binds in the capture phase and claims the chord ahead of any host-page listener; the Monaco/terminal early-return still lets owned chords through. ## Test Plan - `npx vitest run src/hooks/useCommandPaletteHotkey.test.tsx` — 12 pass, incl. capture-phase claiming the chord ahead of document-level listeners, and focused-Monaco chords still propagating to them. - `npx vitest run src/shell/AppShell.test.tsx src/shell/AppShell.subagent-nav.test.tsx src/shell/CommandPalette.test.tsx` — 129 pass. - `npm run type-check`, `oxlint`, `prettier --check` — clean. - Manual: desktop app on a managed server URL, press ⌘K → palette opens; same URL in a browser tab, ⌘K now opens the Omnigent palette there too. ## Demo N/A — hotkey behavior fix, no visual change. ## Type of change - [x] Bug fix - [ ] Feature - [ ] UI / frontend change - [ ] Refactor / chore - [ ] Docs - [ ] Test / CI - [ ] Breaking change ## Test coverage - [x] Unit tests added / updated - [ ] Integration tests added / updated - [ ] E2E tests added / updated - [ ] Manual verification completed - [x] Existing tests cover this change - [ ] Not applicable ## Changelog ⌘K now opens the command palette everywhere, including the desktop app on managed servers Signed-off-by: Zeyi (Rice) Fan <zeyi.f@databricks.com>
fanzeyi
force-pushed
the
zeyi/omni-5473-cmd-k-doesnt-work-in-managed-for-desktop-app
branch
from
August 26, 2026 21:36
ce01003 to
21dc356
Compare
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.
Related issue
Linear: OMNI-5473 (cmd + k doesn't work in managed for desktop app)
Summary
belongs to the host page" (introduced with the palette in feat(web-ui): global command palette (Cmd/Ctrl+K) #1386). That host
⌘K doesn't exist, so on managed servers the chord was dead everywhere —
most visibly in the desktop app, where the embed build is the whole window.
isEmbeddedgate: the hotkey now binds in every mode. In theembedded build the host page is still loaded (CSS-hidden in the desktop
shell), so the listener binds in the capture phase and claims the chord
ahead of any host-page listener; the Monaco/terminal early-return still
lets owned chords through.
Test Plan
npx vitest run src/hooks/useCommandPaletteHotkey.test.tsx— 12 pass,incl. capture-phase claiming the chord ahead of document-level listeners,
and focused-Monaco chords still propagating to them.
npx vitest run src/shell/AppShell.test.tsx src/shell/AppShell.subagent-nav.test.tsx src/shell/CommandPalette.test.tsx— 129 pass.npm run type-check,oxlint,prettier --check— clean.same URL in a browser tab, ⌘K now opens the Omnigent palette there too.
Demo
Screen.Recording.2026-08-26.at.2.36.48.PM.mov
Type of change
Test coverage
Changelog
⌘K now opens the command palette everywhere, including the desktop app on managed servers
Signed-off-by: Zeyi (Rice) Fan zeyi.f@databricks.com