macsync/@packages/inotes/Sources
Natalie 7af883a066
Some checks are pending
Swift Build & Test / swift build + test (push) Waiting to run
fix(inotes): run Notes AppleScript on a thread with a live run loop
The detached thread had no run loop, so AESendMessage(kAEWaitReply) for the long
~25s notes fetch never received its reply (errored). Marshal scripts onto one
long-lived thread that owns a continuously-running CFRunLoop: in-process (TCC
attributes the event to MacSync, grant honored), real run loop (reply pumped),
off-main (no agent freeze). Also log the AppleScript error with .public privacy
so failures are visible instead of os_log's <private> redaction.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 13:02:12 -04:00
..
INoteSync fix(inotes): run Notes AppleScript on a thread with a live run loop 2026-06-30 13:02:12 -04:00