Skip to content

🤖 Ctrl+I in the workspace view can move focus behind the command palette #5752

Description

@ThomasK33

Problem: In the workspace view, Ctrl+I (focus chat) can move focus to the composer behind an open command palette. I did not verify this live. The final check of #5744 found it by reading the code.

Cause: useAIViewKeybinds.ts checks only isDialogOpen(), which does not detect the command palette ([cmdk-root]). #5744 added the [cmdk-root] check to the creation screen's handler only.

Fix idea: move the command-palette check into a shared helper (or into isDialogOpen()) and use it in both Ctrl+I handlers. Add a bug-bash repro like the one in tests/bugbash/repros/focusAndLabels.e2e.ts.

Priority P3. Size S. Follow-up of #5744 / #5687.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions