`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>
8.8 KiB
8.8 KiB