Repository navigation
Conversation
📝 WalkthroughWalkthroughThe change adds macOS symbolic hotkey parsing and conflict detection for Mission Control digit shortcuts. The main process probes macOS settings and exposes captured chords through IPC and preload APIs. The shortcuts pane loads the chords and adds conflicts to the shortcut catalog. Web clients return an empty chord list. Tests cover parsing, modifier decoding, malformed input, layout resolution, probe lifecycle, rendering, localization, and conflict matching. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: dc8eb309-4d7d-4074-a508-cefeaaacb9f5
📥 Commits
Reviewing files that changed from the base of the PR and between b849099 and c153a1774634bfb68ec66f3d2f579816a44dd687.
📒 Files selected for processing (9)
src/main/ipc/app.tssrc/main/ipc/macos-symbolic-hotkeys-probe.tssrc/preload/api/app-api.tssrc/preload/index.tssrc/renderer/src/components/settings/ShortcutsPane.tsxsrc/renderer/src/components/settings/shortcut-definition-catalog.tssrc/renderer/src/web/web-preload-api.tssrc/shared/macos-symbolic-hotkeys.test.tssrc/shared/macos-symbolic-hotkeys.ts
nwparker
left a comment
There was a problem hiding this comment.
Holding this pending both a product decision and correctness fixes.
The premise needs a more adversarial treatment: Orca introduced the colliding macOS Ctrl+1–9 tab default on May 30 in #3193, made it remappable on June 19 in #5789, and the linked issue #14733 was created nine minutes after this implementation commit was authored. That issue is therefore not independent evidence of a longstanding regression. Please explain why a permanent macOS-preferences probe is preferable to revisiting or migrating the relatively recent default.
Blocking findings are inline: the parser can report false conflicts on non-US layouts, the rendered helper truncates the remediation, and the warning remains stale after the user follows the remediation. The user-facing string also needs localization and plural-safe concise copy. I also called out the overlong inline comment.
Validation performed: 24 focused tests passed; touched-file oxlint/oxfmt, React changed-file lint, full typecheck, and localization verification passed. In the real Electron surface, six captured chords produced one conflict, but the visible warning ended at “before…” and remained after the live IPC probe returned an empty list; remounting the pane finally cleared it.
c153a17 to
5a16220
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
5a16220 to
55d80cd
Compare
All blocking findings are addressed on the rebased head; readiness, full tests, static gates, build, and rendered evidence are green.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 884fa3f8-0547-4997-ac83-70c815c6d5ea
📥 Commits
Reviewing files that changed from the base of the PR and between 931cb03 and 5a16220415ce4f4e59e17454cd671743dcdb1d3c.
📒 Files selected for processing (20)
src/main/ipc/app.tssrc/main/ipc/macos-symbolic-hotkeys-probe.tssrc/preload/api/app-api.tssrc/preload/index.tssrc/renderer/src/components/settings/ShortcutCommandBlock.test.tsxsrc/renderer/src/components/settings/ShortcutCommandBlock.tsxsrc/renderer/src/components/settings/ShortcutsPane.tsxsrc/renderer/src/components/settings/shortcut-definition-catalog.test.tssrc/renderer/src/components/settings/shortcut-definition-catalog.tssrc/renderer/src/components/settings/shortcut-groups.test.tssrc/renderer/src/components/settings/use-mac-captured-digit-chords.test.tssrc/renderer/src/components/settings/use-mac-captured-digit-chords.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/web/web-preload-api.tssrc/shared/macos-symbolic-hotkeys.test.tssrc/shared/macos-symbolic-hotkeys.ts
🚧 Files skipped from review as they are similar to previous changes (5)
- src/renderer/src/web/web-preload-api.ts
- src/renderer/src/components/settings/ShortcutsPane.tsx
- src/preload/index.ts
- src/preload/api/app-api.ts
- src/renderer/src/components/settings/shortcut-definition-catalog.ts
Mission Control's Switch to Desktop shortcuts (Ctrl+digit by default, present whenever the user has multiple Spaces) are consumed by WindowServer before the app receives the event, so Orca's digit-range shortcuts silently do nothing and the app can never observe the press. Detect the conflict instead: probe com.apple.symbolichotkeys through the live-prefs pipeline on Shortcuts pane mount and surface a standing conflict warning on the affected rows, counted into the Conflicts stat. Non-Darwin and the web client return no chords, and any probe failure yields an empty result so a missing signal can never show a false warning. Co-Authored-By: Claude Fable 5 <[email protected]>
55d80cd to
d51c473
Compare
|
@nwparker Thank you for the hardening pass — emitting physical |
stablyai#14734) * feat(shortcuts): warn when macOS Mission Control captures digit chords Mission Control's Switch to Desktop shortcuts (Ctrl+digit by default, present whenever the user has multiple Spaces) are consumed by WindowServer before the app receives the event, so Orca's digit-range shortcuts silently do nothing and the app can never observe the press. Detect the conflict instead: probe com.apple.symbolichotkeys through the live-prefs pipeline on Shortcuts pane mount and surface a standing conflict warning on the affected rows, counted into the Conflicts stat. Non-Darwin and the web client return no chords, and any probe failure yields an empty result so a missing signal can never show a false warning. Co-Authored-By: Claude Fable 5 <[email protected]> * fix(shortcuts): harden Mission Control conflict warnings --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Neil <[email protected]>
Summary
On macOS, an enabled “Switch to Desktop 1–9” symbolic shortcut can consume a digit chord before Orca receives it. Settings → Shortcuts now warns only when Orca confirms that the local system owns the same effective chord.
This PR does not change shortcut defaults.
Product decision and scope
Orca introduced the macOS
Ctrl+1–9tab default on May 30 in #3193 and made it remappable on June 19 in #5789. The linked issue #14733 was filed nine minutes after this PR’s first implementation commit, so it is useful reproduction evidence—not independent proof of a longstanding regression.Changing the default now would require a migration and a broader redesign of Orca’s separate tab and workspace digit ranges. This PR keeps the current defaults and makes verified OS conflicts visible; a default migration can be evaluated separately.
Fixes #14733.
What changed
Visual proof
Conflict detected from the local macOS preference and active layout; the full remediation is visible and Conflicts is 1:
After the preference is cleared and Orca regains focus, the warning disappears without remounting and Conflicts returns to 0:
A 600 px viewport check also confirmed the helper wraps to two lines without clipping.
Verification
pnpm lintpnpm typecheckpnpm buildgit diff --checkCompatibility and failure behavior
Checklist
AI disclosure
AI-assisted implementation and review. The maintainer directed the product decision, reviewed the diff, and verified the automated and rendered evidence.