Skip to content

feat(site): add keyboard shortcuts to agents page#22417

Merged
kylecarbs merged 1 commit intomainfrom
keybinds-agents-page
Feb 27, 2026
Merged

feat(site): add keyboard shortcuts to agents page#22417
kylecarbs merged 1 commit intomainfrom
keybinds-agents-page

Conversation

@kylecarbs
Copy link
Copy Markdown
Member

Adds two keyboard shortcuts to the agents page:

  • Escape — Interrupts the running agent when viewing a chat detail page. Only fires when focus is outside text inputs/textareas so it doesn't conflict with the existing edit-cancel Escape handler in the chat input.
  • Ctrl+N / Cmd+N — Navigates to create a new agent. Also skipped when focus is in a text input/textarea.

Both keybindings are implemented in a new useAgentsPageKeybindings.ts hook file:

  • useAgentsPageKeybindings — used in AgentsPage.tsx for Ctrl+N
  • useAgentDetailKeybindings — used in AgentDetail.tsx for Escape → interrupt

- Escape: interrupt the running agent from the chat textarea. Falls
  through to the existing cancel-edit handlers first, so Escape only
  interrupts when no edit is active.
- Ctrl+N / Cmd+N: navigate to create a new agent (skipped when focus
  is in a text input/textarea).
@kylecarbs kylecarbs force-pushed the keybinds-agents-page branch from 7cb9271 to 0be7459 Compare February 27, 2026 21:53
@coder-tasks
Copy link
Copy Markdown
Contributor

coder-tasks bot commented Feb 27, 2026

Documentation Check

New Documentation Needed

  • docs/ai-coder/tasks.md - Add a Keyboard Shortcuts section documenting the two new shortcuts: Escape (interrupt running agent, on the chat detail page) and Ctrl+N / Cmd+N (create a new agent). These shortcuts have no UI affordance (no tooltips or hints), so they are undiscoverable without documentation. See docs/user-guides/workspace-access/web-terminal.md for a precedent table format.

Automated review via Coder Tasks

@kylecarbs kylecarbs merged commit 5fb644a into main Feb 27, 2026
26 checks passed
@kylecarbs kylecarbs deleted the keybinds-agents-page branch February 27, 2026 22:33
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant