v0.4.5 — launchd bootstrap race + fast path
Patch release. Fixes the
Bootstrap failed: 5: Input/output errorreported on a macOS host where v0.4.2 had already wired the launchd plist and the user re-ran the wizard.
Fixed
muxa initno longer hits EIO from launchctl bootstrap when re-run against an already-installed launchd agent (#22). Two orthogonal changes:- 1500 ms sleep between
bootoutandbootstrap. launchd needs ~1-2 s to reap the previous agent's state before it'll accept a re-bootstrap into the same slot. The fresh-install path doesn't hit this delay because the new fast path below short-circuits. - Fast-path skip when the agent is already loaded. If
launchctl print gui/<uid>/<label>succeeds, justkickstart -kto pick up any binary/config changes and return. The common idempotent re-run case is now both faster and entirely bypasses the EIO surface.
- 1500 ms sleep between
Upgrading
git pull
cargo install --path crates/muxad --locked
cargo install --path crates/muxa-cli --locked
muxa init --component muxad-launchd --yes # idempotent, safe to re-runIf you previously hit EIO and manually bootstrapped the agent (the workaround that was floating around), v0.4.5's wizard now does the right thing on its own — no manual intervention needed.
PR: #22