Skip to content

Let keyboard users reach the agent panel and keep focus in it #812

Closed

Description

@EVWorth

Severity: P2.

What happens

  1. Open ?mock=connected, focus the AI title-bar button, and press Enter. The panel opens, but focus stays on the AI button.
  2. Press Tab repeatedly. Focus walks the theme and window buttons, the connection tabs, the sidebar and the query toolbar, then stays inside Monaco ("Editor content" on every press). After 60 presses it still had not reached "Start Claude Agent".
  3. Start a session with the mouse. Focus drops to <body>.
  4. Answer an approval dialog. Focus again lands on <body>, not the message box.

Cause

  • src/components/agent/AgentPanel.tsx does no focus management.
  • src/components/layout/AppLayout.tsx:319: the panel comes after the editor in DOM order, and Monaco captures Tab.

Fix

Move focus into the panel when it opens: the first Start button, or the message box when a session is running. Focus the message box after start() resolves and after an approval or proposal dialog closes.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    83cfa93
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions