Repository navigation
Make everyday desktop work keyboard-only (wave 1) - #619
Conversation
- Sidebar chat rows open their menu with Shift+F10 / the Menu key and get a hover/focus ••• button with the same Rename / Delete items; message fork menus open from the keyboard too (shared helper with Bots). - Cmd+K gains places (Bots, Open a Bot…, Scheduled, Profile), workspace tools, Go back/forward, and the open chat's actions built from the slash commands (Rename, Duplicate, Delete, Export, Compact, Fork, Copy last reply, Chat details, Change folder access). They show only while they can run. - New keys: Cmd+[ / Cmd+] back/forward, Cmd+. stop, Shift+Cmd+M model, Cmd+U attach. All editable in Settings; new defaults yield to saved ones. Browser markup keeps Cmd+. only while focus is inside the browser. - Approval cards: Cmd+Enter allows once and Cmd+Backspace denies while the message box is empty and nothing is open on top; buttons show the keys, and the first Bot approval is announced to screen readers. - /delete slash command; docs/keyboard.md; README and design guide notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
Important
Approval shortcuts can bypass the required empty-message safeguard, and three paired-host approval tests fail with the new shortcut hints.
Reviewed changes Reviewed the complete desktop keyboard-control wave, including command registration, availability, focus handling, approval safety, documentation, and test coverage.
- Keyboard menus: Shared Shift+F10/Menu-key handling for chat rows, Bots, and message forks, plus chat-row overflow actions and
/delete. - Command palette: Bot search, places, workspace tools, and chat actions backed by existing handlers and availability rules.
- Shortcut defaults: History traversal, stop, model selection, attachment picking, saved-binding conflict handling, and browser markup scoping.
- Approval controls: Fixed Allow/Deny shortcuts, overlay and typing guards, shortcut labels, and Bot approval announcements.
- Documentation and tests: Keyboard guide, updated feature/design documentation, unit coverage, and Electron keyboard journeys.
Verification: command-system (107), sidebar (92), and approval-card (24) tests pass; application and e2e type-checks pass. The additional focused slash/Bot/remote run reports 108 passed and 3 failed, all identified inline. A mounted component probe confirms the retained-draft approval bug. Electron e2e execution was not available on this Linux runner.
gpt-6.1-sol | 𝕏
The keys checked only the focused element, so moving focus to a button with text still in the composer let Cmd+Enter allow. The composer's textarea now carries data-message-draft and any non-empty one blocks the keys. Remote chat tests read button names without aria-hidden key hints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed fa65201 against the prior review at 725af4e, with the full PR diff as context.
- Blocked approval keys for retained drafts: Marked the shared composer's message field and checked its contents independently of keyboard focus, preserving the focused-field and overlay guards.
- Extended focus-transition coverage: Verified that neither approval shortcut decides after typing a draft and moving focus to Deny, while empty-draft shortcuts remain functional.
- Restored paired-host approval assertions: Excluded aria-hidden shortcut hints from test button-name matching without weakening enabled-card, one-at-a-time, or deny-only checks.
Verification: all 134 focused approval/composer/Bot/remote tests passed, the full test:remote-chat suite passed 185/185, and npx tsc --noEmit passed. Electron e2e tests were not run on this Linux runner.
gpt-6.1-sol | 𝕏
very-hermes-bot
left a comment
There was a problem hiding this comment.
Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.
Hermes review failedHermes could not produce a code-review verdict for this head SHA. Engine: Safe summary: Local logs: |
An empty search box, the terminal, the file editor or a device screen could still lose Cmd+Enter / Cmd+Backspace to a waiting approval. The keys now act only from the message box or a control that takes no typing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed fa65201..8b1a745, with the complete PR diff as context.
- Excluded other typing surfaces: Reused the existing editable-target and reserved-surface guards so approval keys leave other fields, terminals, file editors, and device screens alone, including when empty.
- Extended behavioral coverage: Added mounted approval-card coverage for empty search fields and reserved terminal/editor surfaces while retaining the empty-composer, retained-draft, overlay, and deny-only checks.
- Clarified keyboard documentation: Documented where approval shortcuts act and when focus or message text disables them.
Verification: all 145 focused approval, composer, Bot, paired-host, and typing-focus tests passed; npx tsc --noEmit passed. Electron e2e tests were not run on this Linux runner.
gpt-6.1-sol | 𝕏
The key hints now show only when the approval card is wide enough for both buttons, so Allow once stays on screen in short windows. E2E selectors are anchored so the sidebar's new More button and the stop key no longer clash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed 6c4c248 against the prior Pullfrog review at 8b1a745, with the complete PR diff as context.
- Adapted approval hints: Hid key hints on narrow workspace approval cards while preserving button names and shortcut behavior; updated the keyboard guide.
- Updated e2e assertions: Matched Stop's combined shortcuts and distinguished draft-chat rows from their overflow buttons.
Verification: all 44 focused approval and paired-host tests passed; e2e type-check passed; Playwright collected 28 tests across the two changed specs. The new Tailwind utilities compile correctly. Electron e2e execution and visual layout were not verified on this Linux runner.
gpt-6.1-sol | 𝕏
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
very-hermes-bot
left a comment
There was a problem hiding this comment.
Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed the changes since the prior Pullfrog review at 6c4c248, including the latest paired-host Bot approval fix, with the complete PR diff as context.
- Enabled paired-host Bot approval keys: Connected the remote Bot approval card to the shared shortcut handler, preserving draft, focus, overlay, and deny-only safeguards.
- Verified keyboard denial: Updated the mounted remote Bot test to confirm that Allow remains unavailable for a deny-only approval and that the Deny shortcut sends the decision for the correct wait ID.
- Clarified shortcut customization: Documented that approval keys and
/are excluded from Settings-based shortcut customization.
Verification: test:remote-chat passed 185/185; focused approval-card, Bot-chat, and typing-focus suites passed 100/100; npx tsc --noEmit passed. Electron e2e execution and visual layout were not verified on this Linux runner.
gpt-6.1-sol | 𝕏
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed 65838a9 against the prior Pullfrog review at d8a3cf2, with the complete PR diff as context.
- Updated the mounted Composer fixture: Added the command-handler hook stub and shortcut-binding lookup required by Composer, leaving the existing behavioral assertions unchanged.
Verification: npx tsx --test renderer/components/composer-attachments-mounted.test.tsx passed all 7 tests. This delta changes no production code; broader suites and Electron e2e tests were not repeated.
gpt-6.1-sol | 𝕏
…ac doesn't clash Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed 308af48 against the prior Pullfrog review at 65838a9, with the complete PR diff as context.
- Disambiguated menu assertions: Added exact accessible-name matching for Rename and Delete in the keyboard-only journey, preventing macOS's conditional Rename with Apple item from colliding with Rename while preserving the existing assertions.
Verification: npm run type-check:e2e passed; Playwright collected all 26 tests in chat-shell-interactions.spec.ts, including the changed journey. Electron e2e execution was not available on this Linux runner. No production code changed.
gpt-6.1-sol | 𝕏
very-hermes-bot
left a comment
There was a problem hiding this comment.
Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.
…tachment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed 84c8eac against the prior Pullfrog review at 308af48, with the complete PR diff as context.
- Blocked approval keys for whitespace: Counted spaces as draft content rather than treating whitespace-only messages as empty.
- Protected staged payloads: Marked Composer drafts containing attachments or a selected skill so approval keys remain inactive even after focus moves away from the message box.
- Extended coverage and documentation: Added mounted approval-card checks for whitespace and staged payloads, and documented the stricter empty-message requirement.
Verification: all 149 focused approval, Composer, Bot, paired-host, and typing-focus tests passed; npx tsc --noEmit passed. Electron e2e execution was not verified on this Linux runner.
gpt-6.1-sol | 𝕏
…-aiyeon # Conflicts: # renderer/main/remote-chat-view.tsx
|
Two jobs failed on the merge commit b70e6bb, each on one timing-sensitive test that this PR doesn't touch:
When the rest of the run finishes, I'll re-run the failed jobs once. Both are recorded in the description. Hermes Review Bot (status): the review engine timed out after 32 minutes on this head, so no code verdict was produced. The previous head 84c8eac reviewed clean, and the merge brought in only Generated by Claude Code |

🤖 Generated with Claude Code
https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
First of three PRs from the desktop keyboard audit (owner's answers: all three waves in order; approval keys ⌘↩ / ⌘⌫ only while the message box is empty; ⌘. stops a reply). This wave removes the last mouse-only journeys and fills the gaps in ⌘K.
What changes
⇧F10or the Menu key, and get a hover/focus•••button with the same items (Rename, Rename with Apple, Delete). The message Fork menu opens the same way. The helper now lives inrenderer/lib/keyboard-context-menu.ts, and Bots use it too. Adds/deleteand ⌘K → Delete chat… for the open chat, which ask the same confirmation.paletteWhenAvailableflag lists them only while something on screen can run them.⌘[/⌘]back/forward,⌘.stop,⇧⌘Mchange model,⌘Uattach. All can be changed in Settings. New defaults yield to any shortcut a person already saved. Browser markup keeps⌘.only while focus is inside the browser.⌘↩allows once and⌘⌫denies (Ctrl off the Mac). They act only on the open chat's card (and the first Bot approval), only while the message box is empty, and only when no dialog or menu is open.aria-keyshortcuts.docs/keyboard.md, plus updates to the README palette line and to the approval section ofdocs/design-guide.md.Screenshots (light | dark)
Posted in the project thread and saved in
/mnt/project-files/keyboard-control/wave1/:Tests
npx tsc --noEmitandnpm run type-check:e2epass, and eslint is clean on the changed files.test:command-system,test:sidebar,test:slash-commands,test:tool-approval-card,test:bots.chat-approval-card.test.tsx).command-system-core.test.ts).keybindings.test.ts).chat-shell-interactions.spec.tscovers ⌘[ / ⌘], ⇧F10 row menu, Tab to •••, ⌘K Delete chat…, and Go to Scheduled then back.browser-agent.spec.tsnow allows the local-file preview with ⌘↩ instead of a click.chat-shell-interactions,chat-top-bar,chat-fork,app-controlsandbots-sidebar-panelall pass locally (45/45).test:browserhas 9 Chromium failures in the cloud container because the headless shell binary is missing (an environment gap, not this change).Flaky tests seen
Both appeared on merge commit b70e6bb (run 40760065742), and this PR doesn't touch either area. Each gets one re-run.
AidenChatTests.testAnnouncedRunThatEndedBeforeTheAttachIsReadFromTheTranscriptOnce()failed with "Timed out waiting for attach on load" (job). The same job passed on 84c8eac.main/services/bot-runtime/live-projection.test.ts:1883, "while classifying fails, a cached routine stays hidden…", failed withretries are throttled, saw 3 calls. The three retries landed closer together than the 2 × 150 ms the test expects on a slow macOS runner (job).Notes
Generated by Claude Code