From 7bae1216ff5a6c09e1dbf7d69c6d7f3e89817f9a Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Tue, 3 Feb 2026 15:30:23 -0800 Subject: [PATCH] Fix race condition in reload.sh causing -600 error Add delay after pkill to give Launch Services time to release the old process handle before opening the new app. --- scripts/reload.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/reload.sh b/scripts/reload.sh index ef0353d5..7bdde451 100755 --- a/scripts/reload.sh +++ b/scripts/reload.sh @@ -204,6 +204,7 @@ if [[ -n "$TAG" && "$APP_NAME" != "$SEARCH_APP_NAME" ]]; then fi pkill -f "${APP_PATH}/Contents/MacOS/" || true +sleep 0.3 CMUXD_SRC="$PWD/cmuxd/zig-out/bin/cmuxd" if [[ -d "$PWD/cmuxd" ]]; then (cd "$PWD/cmuxd" && zig build -Doptimize=ReleaseFast)