Repository navigation
Keyboard control wave 3: ⌘/ key list, fuller menu bar, focus after onboarding - #662
Conversation
…boarding - ⌘/ (and Help → Keyboard Shortcuts) opens a searchable list of every key as set in Settings plus the built-in keys; Settings → Keyboard shortcuts lists the built-in keys too. The new ⌘/ default yields to a saved shortcut. - The menu bar gains View, Go and Chat menus and Help → Keyboard Shortcuts. These items show the current key without taking it from the page, and grey out while the app can't run them (the renderer reports what it can run). On macOS a menu key the page already saw is dropped. - When first-run setup finishes, the message box takes focus, including a Bot's chat opened from setup. - docs/keyboard.md and README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
…ading ids 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.
Important
The native accelerator fallback can bypass keyboard scope restrictions on macOS. One finding needs addressing before merge.
Reviewed changes across the complete PR, including the keyboard list, native menu integration, and onboarding focus lifecycle.
- Keyboard list: Adds customizable
Command+/, searchable saved and built-in bindings, grouped presentation, focus restoration, and a link to Settings. - Shortcut Settings: Adds searchable built-in keys and conflict-safe migration for the new default shortcut.
- Native menus: Extends View, Go, Chat, and Help, reports renderer command availability to main, and distinguishes menu clicks from accelerator echoes.
- Onboarding focus: Retries composer focus after setup closes, including replacement composers when opening a Bot chat.
- Verification: Command-system tests passed (142), menu tests passed (7), onboarding tests passed (82), and e2e type-checking passed. A targeted mounted probe reproduced the scope bypass with a simulated native accelerator callback; physical macOS Electron e2e was not run on this Linux runner.
gpt-6.1-sol | 𝕏
macOS still fires an item built with registerAccelerator: false when the page leaves its key alone (the terminal) or never sees it (an artifact frame). Matching that echo against the last keydown missed on non-QWERTY layouts and in frames, so the menu ran the command behind the page's scope rules. Key-triggered clicks on these items now do nothing; the page alone decides what its keys do. 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
The scope bypass is fixed, but the new filter also prevents keyboard selection of renderer-owned native menu items on macOS.
Reviewed changes since the previous Pullfrog review at 5111cf181, scoped to f85c40dac.
- Blocked native accelerator callbacks: Moved filtering into the menu callback so unmatched native shortcuts cannot bypass renderer keyboard scopes.
- Removed echo matching: Deleted last-keydown tracking, the
menu-keypayload field, and the obsolete matching helper and tests. - Updated menu coverage: Adjusted callback and mounted tests to the simplified notification contract. The command suite passed all 141 tests, and the menu/readiness-contract suites passed all 13 tests; a targeted callback probe reproduced the keyboard-menu regression. Native macOS interaction was not executed on this Linux runner.
gpt-6.1-sol | 𝕏
Electron reports every non-mouse activation as triggeredByAccelerator, so the previous guard also dropped choosing an item with the arrow keys and Return. A press of the item's own shortcut is now recognised by the modifiers held, which every shortcut has and menu selection doesn't. 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
Return-based menu selection is restored, but macOS user-assigned menu shortcuts can now bypass renderer keyboard scopes.
Reviewed changes since the previous Pullfrog review at f85c40dac, scoped to a7f868302.
- Refined native activation filtering: Replaced the blanket accelerator guard with canonical-binding modifier comparison to preserve modifier-free Return selection.
- Expanded macOS callback coverage: Added mouse selection, Return on bound and unbound items, and canonical shortcut suppression cases.
- Verified the delta: Passed all 141 command-system tests and all 13 menu/ownership-contract tests. A targeted callback probe reproduced the user-assigned-shortcut bypass; physical macOS interaction was not run on this Linux runner.
gpt-6.1-sol | 𝕏
macOS App Shortcuts can give a menu item a key Aiden doesn't know about, so comparing against Aiden's binding let those through. Any key activation that carries a modifier is now treated as a shortcut; Return in an open menu carries none and still chooses the item. 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 since the previous Pullfrog review at a7f868302, scoped to db464778a.
- Removed binding-dependent filtering: Suppressed modifier-bearing native shortcut callbacks regardless of Aiden's saved binding, closing the macOS App Shortcuts bypass while preserving modifier-free Return selection and mouse clicks.
- Extended callback coverage: Added OS-assigned shortcut cases for both unbound items and bound items with different canonical modifiers.
- Verified keyboard behavior: Passed all 141 command-system tests and all 13 menu/ownership-contract tests. All prior review threads are resolved. Physical macOS menu interaction remains unverified on this Linux runner.
gpt-6.1-sol | 𝕏
Hermes Review BotConfidence: 5 Engine: SummaryThis change implements wave 3 of the keyboard-control improvements by introducing a searchable Confidence Score: 5/5Fully traced and verified across main-process menu template construction, IPC command filtering, renderer command availability reporting, focus management, and dialog accessibility. 📁 Important Files Changed
FindingsNo findings. Sequence DiagramsequenceDiagram
autonumber
participant R as Renderer (CommandSystem)
participant IPC as Electron IPC Bridge
participant M as Main Process (AppMenu)
participant OS as Native Menu Bar
Note over R: Route / handler state changes
R->>IPC: invoke("app:setMenuCommands", [activeCommandIds])
IPC->>M: handle("app:setMenuCommands")
M->>M: parseMenuCommandIds() & diff vs current
M->>OS: Menu.setApplicationMenu(rebuiltMenu)
Note over OS: Items enabled/disabled per available set
alt User selects menu item via click or Return
OS->>M: MenuItem.click(event)
M->>M: firedByShortcut(event) == false
M->>IPC: deliverMainWindowNotification("app:command", { commandId })
IPC->>R: onNotification("app:command")
R->>R: execute(commandId)
else User presses shortcut inside page
Note over R: keydown captured by DOM listener
R->>R: execute(commandId)
Note over OS: MenuItem accelerator not registered (ignored)
end
[]
|
The Find row's "Enter / Shift+Enter or Ctrl+G / Ctrl+Shift+G" couldn't shrink, so Settings → Keyboard shortcuts scrolled sideways at 390px (settings-unification e2e). The combo now wraps within 60% of the row. 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 since the previous Pullfrog review at db464778a, scoped to 5ab14593f.
- Constrained key-chip width: Replaced the non-shrinking shortcut group with a 60% maximum width, allowing alternatives to wrap in the keyboard dialog and Settings built-in-key rows without changing shortcut behavior.
- Verified affected behavior: Passed all 141 command-system tests, including the mounted dialog and Settings tests. CSS wrapping was inspected in both callers but not measured in a real browser; physical macOS menu interaction remains unverified.
gpt-6.1-sol | 𝕏
|
Desktop tests (core-git) failed on 5ab1459. 3987 of 3988 tests passed. The one failure is This isn't from this PR. Nothing here touches Run: https://github.com/sambitcreate/aiden-agent/actions/runs/40969192783/job/123781620075 Generated by Claude Code |
Electron accelerators are Command+/ on darwin and CommandOrControl+/ elsewhere; the Mac E2E shard failed on the Linux-only expectation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ
|
There are two updates on the 5ab1459 run.
Generated by Claude Code |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the previous Pullfrog review at 5ab14593f, scoped to 64500fbcd.
- Corrected the platform-specific expectation: Updated the Help-menu e2e assertion to expect
Command+/on macOS andCommandOrControl+/elsewhere, matching the existing production accelerator mapping. - Verified the affected contract: Passed e2e type-checking and all 8 application-menu unit tests, including macOS and Linux accelerator cases. Physical macOS Electron e2e was not run on this Linux runner.
gpt-6.1-sol | 𝕏
Only the "or" alternative wraps on narrow windows. 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 since the previous Pullfrog review at 64500fbcd, scoped to 08ac7353a.
- Kept key pairs together: Wrapped each primary and alternative key group in a non-wrapping inline-flex span, preserving pair and range readability in both the shortcut dialog and Settings.
- Verified affected behavior: Passed all 141 command-system tests and checked the real component with production CSS in Chromium using Linux key labels. At the dialog's 680px width, pairs stayed together and Find alternatives wrapped without row overflow at default and maximum UI font sizes. Full Electron e2e and physical macOS interaction were not run.
gpt-6.1-sol | 𝕏

Wave 3 of 3 from the keyboard-control audit. Wave 1 was #619 and wave 2 was #641. The owner chose all three waves ("1c 2a 3a").
What changes for the person
Implementation notes
registerAccelerator: false, so they show the key without the OS taking it. The page's own command system keeps the key and its rules (editable targets, terminal scope).firedByShortcutdrops anytriggeredByAcceleratoractivation that carries a modifier. Electron also reports Return in an open menu astriggeredByAccelerator, but Return carries no modifier, so choosing with the arrow keys and Return still works, as does clicking.app:setMenuCommands. This is debounced and skips repeats. Main rebuilds the menu only when that list changes.nativeMenucommands) are unchanged.renderer/shared/built-in-keys.ts: one list for the sheet, Settings and docs.renderer/lib/shortcut-sheet.ts: grouping and search.renderer/components/keyboard-shortcuts-dialog.tsxfocusRegionWhenShowninrenderer/lib/focus-regions.tskeeps trying for up to 2 s, until the composer exists.focusRegionnow checksnodeTypeinstead ofinstanceof Document, which threw under happy-dom.Screenshots (light and dark)
These are in the project files under
keyboard-control/wave3/:Tests
renderer/lib/shortcut-sheet.test.ts(4)renderer/components/keyboard-shortcuts-dialog.test.tsx(5): custom keys, search, Change keys…, Esc returning focus, the Settings group, and menu availability with menu clicks. The focus test fails without its fix.focus-regions(+3): a late composer, a swapped composer, and focus the person moved.application-menu-core(+5). The darwin test covers:It fails with no guard, with the boolean-only guard, and with the binding-match guard.
command-system-core(+1): ⌘/ works from editable targets but not the terminal.The
native-menu-command-contractfirst test is rewritten so that onlynativeMenucommands register keys.test:command-systemandscripts/ci-test-registry.json(renderer-other).chat-shell-interactions.spec.ts: composer focus after onboarding, then ⌘/ opens the list, search narrows it and Esc closes it. It also checks the Help item's key (Command+/on macOS,CommandOrControl+/elsewhere), which items are greyed out, and that clicking the menu item opens the list.bots-starter.spec.tschecks Bot composer focus after onboarding.test:command-system(141),test:sidebar,test:linux-contractsand the onboarding tests pass.chat-shell-interactions,bots-starter,onboarding-lmstudioandsettings-unification› "all Settings pages fit narrow and wide windows" pass.tsc(app and e2e) and eslint are clean on the new base.use-assistant-live› "busy setup close transition" failed once while the full renderer-other lane ran under load. It passes alone.plutilENOENT. It is Mac-only and unrelated to this change.main/services/git.test.ts› "GitService reconciles a timeout after the exact branch ref was updated" failed withGitServiceError: Git did not finish within 1 seconds(run). This PR does not touch git code, and the test passed on the next head.Docs
docs/keyboard.mdadds the ⌘/ row and a "Keyboard list and menu bar" section, which also covers focus after setup. Its fixed-keys note points tobuilt-in-keys.tsand the Settings list.🤖 Generated with Claude Code
https://claude.ai/code/session_018VA6RFnvTu7rNwP4JpjJMZ