Skip to content

Make everyday desktop work keyboard-only (wave 1) - #619

Merged
sambitcreate merged 11 commits into
mainfrom
claude/project-thread-aiyeon
Oct 29, 2026
Merged

sambitcreate merged 11 commits into
mainfrom
claude/project-thread-aiyeon

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

🤖 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

  • Menus from the keyboard (F1). Sidebar chat rows open their right-click menu with ⇧F10 or 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 in renderer/lib/keyboard-context-menu.ts, and Bots use it too. Adds /delete and ⌘K → Delete chat… for the open chat, which ask the same confirmation.
  • ⌘K places and tools (F2). Go to Bots, Open a Bot… (searches Bots by name), Go to Scheduled, Go to Profile, Go back / Go forward, and Open Changes/Files/Browser/Device/Context/Subagents/Artifacts.
  • ⌘K chat actions (F3). Rename, Duplicate, Delete, Export, Compact, Fork, Copy last reply, Chat details and Change folder access. Most of these run the matching slash command's own handler and availability rules (Delete goes through the sidebar's confirmation). A new paletteWhenAvailable flag lists them only while something on screen can run them.
  • New keys (F4). ⌘[ / ⌘] back/forward, ⌘. stop, ⇧⌘M change model, ⌘U attach. 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.
  • Approval keys (F5).
    • ⌘↩ 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.
    • They are off while sending, and a card that can't allow only takes deny.
    • Buttons show the key as a quiet trailing label and carry aria-keyshortcuts.
    • The first Bot approval is now announced to screen readers, as workspace approvals already were.
  • Docs. New docs/keyboard.md, plus updates to the README palette line and to the approval section of docs/design-guide.md.

Screenshots (light | dark)

Posted in the project thread and saved in /mnt/project-files/keyboard-control/wave1/:

  • palette chat actions
  • palette places
  • chat row ••• menu
  • Delete from ⌘K
  • Settings → Keyboard shortcuts
  • approval card with key labels

Tests

  • npx tsc --noEmit and npm run type-check:e2e pass, and eslint is clean on the changed files.
  • Unit suites pass: test:command-system, test:sidebar, test:slash-commands, test:tool-approval-card, test:bots.
  • New behavioral tests:
    • Approval keys allow, deny, ignore typed text, ignore open menus, stay off while deciding, and deny only when the card can't allow (chat-approval-card.test.tsx).
    • Palette availability filter (command-system-core.test.ts).
    • New defaults yield to a saved shortcut (keybindings.test.ts).
  • Playwright:
    • A new keyboard-only journey in chat-shell-interactions.spec.ts covers ⌘[ / ⌘], ⇧F10 row menu, Tab to •••, ⌘K Delete chat…, and Go to Scheduled then back.
    • browser-agent.spec.ts now allows the local-file preview with ⌘↩ instead of a click.
    • chat-shell-interactions, chat-top-bar, chat-fork, app-controls and bots-sidebar-panel all pass locally (45/45).
  • test:browser has 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.

  • iOS build and simulator tests: AidenChatTests.testAnnouncedRunThatEndedBeforeTheAttachIsReadFromTheTranscriptOnce() failed with "Timed out waiting for attach on load" (job). The same job passed on 84c8eac.
  • Desktop tests (runtime-subagents): main/services/bot-runtime/live-projection.test.ts:1883, "while classifying fails, a cached routine stays hidden…", failed with retries 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

  • The approval keys are fixed rather than catalog commands, because the catalog's key normalizer has no Backspace.
  • Wave 2 (F6 regions, arrow-key sidebar, Bot chat keys, ↑ recall, ⌘F find) and wave 3 (⌘/ cheat sheet, fuller menu bar, onboarding focus) follow as separate PRs.

Generated by Claude Code

- 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
@sambitcreate sambitcreate self-assigned this Oct 27, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol | 𝕏

Comment thread renderer/lib/approval-shortcuts.ts Resolved
Comment thread renderer/main/remote-chat-view.tsx Resolved
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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@very-hermes-bot very-hermes-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.

Comment thread renderer/lib/approval-shortcuts.ts Resolved
@very-hermes-bot

very-hermes-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Hermes review failed

Hermes could not produce a code-review verdict for this head SHA.

Engine: agy/gemini-3.8-flash-high
Review mode: full
Head: b70e6bbe945047cf543f46cbdc2a2b0d3d1999e0
Generated: 2026-10-28T23:36:28+00:00
Failure phase: engine

Safe summary:

Command '['/home/sambit1/.local/bin/agy', '--print-timeout', '30m0s', '--sandbox', '--add-dir', '/tmp/hermes-review-bot/aiden-agent-pr-619-b70e6bbe9450', '--model', 'gemini-3.8-flash-high', '--input-format', 'stream-json', '--output-format', 'stream-json', '--print', '']' timed out after 1920 seconds

Local logs: /home/sambit1/.hermes/logs/review-bot/aiden-agent.log

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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using 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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using 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 very-hermes-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.

Comment thread renderer/main/bots/bot-chat-pane.tsx Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using 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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@very-hermes-bot very-hermes-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.

Comment thread renderer/lib/approval-shortcuts.ts Resolved
…tachment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

…-aiyeon

# Conflicts:
#	renderer/main/remote-chat-view.tsx

sambitcreate commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner Author

Two jobs failed on the merge commit b70e6bb, each on one timing-sensitive test that this PR doesn't touch:

  • iOS build and simulator tests: AidenChatTests.testAnnouncedRunThatEndedBeforeTheAttachIsReadFromTheTranscriptOnce() hit "Timed out waiting for attach on load" (job). This PR changes no iOS code, and the same job passed on the previous head 84c8eac.
  • Desktop tests (runtime-subagents): main/services/bot-runtime/live-projection.test.ts:1883 ("while classifying fails, a cached routine stays hidden…") failed with retries are throttled, saw 3 calls. That check needs the three classification retries to be at least ~295 ms apart, and it fails when a slow macOS runner bunches them up (job). This PR doesn't touch Bot runtime code, and the other 4,368 tests in the lane passed.

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 main's changes plus one conflict resolution in renderer/main/remote-chat-view.tsx. I can't re-trigger this bot from here.


Generated by Claude Code

@sambitcreate
sambitcreate merged commit 2deebd1 into main Oct 29, 2026
46 of 50 checks passed
@sambitcreate
sambitcreate deleted the claude/project-thread-aiyeon branch October 29, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants