Files
ai-agent/worker/install-macos.sh
Gabriel Vidal 023f43c811 fix(worker): wait for launchd to unload the old agent before bootstrapping the new one
`launchctl bootout` returns before the agent is gone; an immediate
`bootstrap` then fails with "5: Input/output error" and the worker stays
down (what --update just did on the Mac). Poll until the label is unloaded,
retry the bootstrap with backoff, treat an already-loaded label as success,
and die with the retry command when launchd really refuses.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-06 16:13:50 +02:00

8.8 KiB