[Feature]: Desktop keyboard shortcut to stop the active run (Ctrl+C, like the CLI/TUI)
Author: nicholas348Created Oct 2, 2026Updated Oct 2, 2026
Labelstype/featureP3comp/desktop
⚠️ AI-GENERATED DISCLOSURE: This feature request was drafted by a Hermes agent (AI) on the account holder's machine, at the account holder's request, based on inspection of the desktop app's actual keybind and composer-stop code. Independent human review is welcome.
Summary
Add Ctrl+C as a keyboard shortcut to stop the currently running turn/agent, matching the CLI/TUI interrupt gesture, wired as a rebindable action in the existing keybinds panel. (Keyboard stop already exists — Escape, via composer.cancel — but it is composer-scoped, non-rebindable, and not the gesture terminal-trained users reach for.)
Motivation
- In the CLI/TUI, Ctrl+C is the muscle-memory interrupt. The desktop's existing keyboard stop is Escape (
composer.cancel, a fixed non-rebindable row): it works, but it only fires from composer focus, popovers and the find bar claim it first, and it is not what terminal-trained users press. Ctrl+C today does nothing on macOS and copies on Windows/Linux. - The desktop's own built-in terminal panel already implements exactly this Ctrl+C convention ("Plain Ctrl+C also copies when text is selected …; with no selection it stays SIGINT" —
apps/desktop/src/lib/keybinds/actions.ts, KEYBIND_READONLYview.terminalCopy). The same convention should exist app-wide while a turn is running.
Current behavior
- The composer's send button morphs into a stop (square) button while a turn is running and the composer is empty (
apps/desktop/src/app/chat/composer/controls.tsx,showStop = busy && !hasComposerPayload). Mouse-only. /stopstops the active turn and background processes, but requires typing.- Escape stops a run / closes popovers, but is composer-scoped: the dispatcher yields Escape to the open find bar and other popovers first (
apps/desktop/src/lib/find-in-page.ts,findBarClaimsCombo;apps/desktop/src/app/hooks/use-keybinds.ts). - The rebindable keybind registry (
apps/desktop/src/lib/keybinds/actions.ts) has no stop-the-run action;composer.cancelis display-only.
Proposed behavior
- Add a rebindable keybind action (suggested id:
session.stop, categorysession, label "Stop active run") with defaultctrl+c. - Semantics: identical to Escape / the stop button /
/stop— the normal soft interrupt that marks the turn interrupted_by_user ("Operation interrupted"), not a hard kill. - Fires from anywhere in the app while the active session's turn is running (unlike composer-scoped Escape), including while focus is in the composer (set
editableTargetPolicy: 'modified'so a Ctrl-modified chord is allowed in editable targets, peractionAllowedInInput). - Should stop the turn regardless of composer payload — unlike the stop button, which hides behind Queue when the composer has text; a keyboard interrupt should always be available, like
/stopand CLI Ctrl+C. - When no turn is running, Ctrl+C must fall through to normal behavior (copy on Windows/Linux, no-op on macOS).
Platform conflict (Ctrl+C = copy)
- macOS: Ctrl+C is free (copy is Cmd+C), and
ctrl+is a first-class physical-Control token in the combo system — no conflict. - Windows/Linux:
ctrlfolds intomod, soctrl+ccollides with copy in text fields. Adopt the built-in terminal's existing rule: text selected in the focused field → copy; no selection and a turn is running → stop. This makes behavior consistent between the app and its own terminal panel.
Related
- #85148 — [Feature Request]: Configurable Ctrl+C behavior in CLI (interrupt / copy / disabled). This request is the desktop counterpart.
- The existing Esc (
composer.cancel) stop behavior can remain as-is; Ctrl+C complements rather than replaces it.
Source: NousResearch/hermes-agent