Commit cc1d735
fix: Accessibility never prompted in onboarding + hotkey dead until restart
Two real bugs behind 'Right ⌘ shows no HUD':
1. Onboarding never asked for Accessibility. The AX prompt was wired
(_act_grant_accessibility) but nothing fired it — enabling Whisper requested
only Microphone. So users reached the 'hold Right ⌘' demo without the
permission that makes Right ⌘ work. Now enable_whisper also requests AX, and
the Whisper step gates the read-aloud demo behind an 'Enable Accessibility'
step when it's missing.
2. Granting Accessibility mid-session didn't help — _start_hotkey checks trust
only at launch, and a global event monitor created while untrusted stays deaf
even after the grant (it must be re-created). The 10s watch loop now re-arms
the hotkey once trust flips true, so the HUD starts working without an app
restart.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019GTBZjBGurqsHUHsjaU1gA1 parent 1dcbae8 commit cc1d735
3 files changed
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
948 | 956 | | |
949 | 957 | | |
950 | 958 | | |
| |||
1026 | 1034 | | |
1027 | 1035 | | |
1028 | 1036 | | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1029 | 1050 | | |
1030 | 1051 | | |
1031 | 1052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
878 | 891 | | |
879 | 892 | | |
880 | 893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
687 | 692 | | |
688 | 693 | | |
689 | 694 | | |
| |||
0 commit comments