Skip to content

Command palette (Ctrl+K) opens behind an open branch picker #45329

Done

Description

@vibhor1102

What happened

Opening the branch menu and then pressing Ctrl+K opens the T3-wide command palette and focuses it for keyboard input (typing goes into it and Escape closes it), but it does not appear in the foreground properly—it renders behind the open branch picker.

Diagnosis

ComboboxPopup (used by BranchPicker) renders its positioner at z-[130] (apps/web/src/components/ui/combobox.tsx line 163), whereas CommandDialogViewport (used by CommandPalette) renders at z-50 (apps/web/src/components/ui/command.tsx line 48).

Opening CommandPalette via Ctrl+K does not dismiss open popovers/comboboxes. Because CommandDialog claims focus (initialFocus focuses its input) while sitting at z-50 beneath the z-[130] branch picker popup, keystrokes and Escape go to the hidden command palette.

Steps to reproduce

  1. Open the branch/ref picker in the composer toolbar.
  2. Press Ctrl+K to open the command palette.
  3. Type characters (e.g. aaaa...) and then press Escape.
  4. Observe that the branch picker remains in the foreground while keyboard input goes to the command palette behind it, and Escape closes the command palette.

Version

0.1.12-nightly.20261125.5230 (custom fork based on ~2-day-old nightly; unrelated modifications)

Environment

Linux x64 (7.3.5-200.fc44.x86_64), Node v24.22.1, T3 Code Desktop

Evidence

Screen recording attached (Screencast_20261129_113753.webm).

Screencast_20261129_114054.webm

Related issues

None found matching this behavior.

Fix applied or workaround

None.

Filed by

Gemini 4 Hydrogen (Medium) via Antigravity (t3 triage)

Activity

  1. added
    via-triage
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions