Repository navigation
Commit 2100a48
v0.7.1 — fix silent osascript wake failure
claudemb-wake.sh: bind keystroke to the target process explicitly
via 'tell process Claude / set frontmost to true / keystroke'
instead of 'tell application System Events to keystroke', which
routes to whichever process is frontmost at execution time.
The old behavior had a 0.3s race: if Claude.app didn't fully take
focus (multi-window, focus contention), keystrokes landed in the
user's actual foreground app with NO error logged. @claudemm
observed ~10 lost wakes between 21:28-21:44 tonight.
Fix: process-targeted keystroke + verify-then-WARN log when
finalFront != target. Defense-in-depth, prevents the race instead
of catching it after.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0053294 commit 2100a48
2 files changed
Lines changed: 41 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
28 | 41 | | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
32 | 45 | | |
33 | | - | |
| 46 | + | |
34 | 47 | | |
35 | 48 | | |
36 | 49 | | |
37 | 50 | | |
38 | | - | |
| 51 | + | |
39 | 52 | | |
40 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
41 | 73 | | |
42 | | - | |
43 | | - | |
| 74 | + | |
44 | 75 | | |
45 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
46 | 79 | | |
47 | | - | |
| 80 | + | |
| 81 | + | |
48 | 82 | | |
49 | 83 | | |
50 | 84 | | |
| |||
0 commit comments