Commit Graph
1 Commits
Author SHA1 Message Date
juju812 f1222be4b3 fix(panel): include ancestor processes in macOS relaunch pgrep/pkill
On macOS, BSD pgrep and pkill exclude ancestor processes by default unless
-a is passed. Because the detached relaunch shell is spawned from the
sidecar under Antigravity, pgrep -x and pkill -x silently missed the
running host process, causing open -a --args --remote-debugging-port=0 to
fire before the old instance exited (or while it was still running).

Use pgrep -ax and pkill -{TERM,KILL} -ax, and add a brief 0.4s pause after
process exit so LaunchServices finishes deregistering before relaunch.
2026-11-20 15:30:06 +08:00