Skip to content

fix(prefill): retry worker LaunchAgent upgrades - #166

Merged
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/prefill-worker-launchd-restart-0712
Jul 12, 2026
Merged

fix(prefill): retry worker LaunchAgent upgrades#166
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/prefill-worker-launchd-restart-0712

Conversation

@FluffyAIcode

Copy link
Copy Markdown
Owner

Summary

  • wait for the previous worker label to disappear after launchctl bootout
  • retry launchctl bootstrap three times with bounded delay
  • explicitly kickstart the new worker after a successful bootstrap
  • preserve the 0644 plist permission fix from PR fix(prefill): keep MLX worker compute thread-affine #165

Root cause

Two real allens upgrades hit launchd error 5 because the installer attempted to bootstrap the same label before asynchronous bootout teardown completed. Waiting five seconds and retrying manually succeeded both times.

Tests

  • worker installer regression tests — 2 passed
  • complete bridge suite — 46 passed
  • bash -n deploy/install_prefill_worker_launchd.sh

Made with Cursor

Wait for launchd to finish removing the previous worker and retry bootstrap before failing, preventing transient error 5 during in-place deployments.

Co-authored-by: Cursor <cursoragent@cursor.com>
@FluffyAIcode
FluffyAIcode merged commit fc9b684 into main Jul 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant