[object Object]

← back to Model Arena

Fix keepalive wrapper: prepend /opt/homebrew/bin to PATH (launchd PATH lacks node → exit 127)

90091acbda6f6ed2b5554d02be1e59038f1aa885 · 2026-09-23 09:13:38 -0700 · Steve Abrams

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 90091acbda6f6ed2b5554d02be1e59038f1aa885
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Sep 23 09:13:38 2026 -0700

    Fix keepalive wrapper: prepend /opt/homebrew/bin to PATH (launchd PATH lacks node → exit 127)
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 scripts/keepalive-server.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/keepalive-server.sh b/scripts/keepalive-server.sh
index 55139a8..32c0ac8 100644
--- a/scripts/keepalive-server.sh
+++ b/scripts/keepalive-server.sh
@@ -12,6 +12,9 @@
 #   2. rm ~/.claude/model-arena.PAUSED
 #   then: launchctl kickstart -k gui/$(id -u)/com.steve.model-arena
 cd /Users/macstudio3/Projects/model-arena || exit 1
+# launchd's PATH is only /usr/bin:/bin:/usr/sbin:/sbin — node lives in homebrew, so prepend it
+# (stable symlink dir, survives node version bumps) or exec node fails with exit 127.
+export PATH="/opt/homebrew/bin:$PATH"
 set -a; [ -f .env ] && . ./.env; set +a
 export ARENA_PAUSED=1
 exec node server.js

← c0fcc0d Fix: complete ARENA_PAUSED gate and implement held-run relea  ·  back to Model Arena  ·  auto-data-snapshot: 2026-09-23T09:31:43 (1 data files) — dat 4793da4 →