small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

fix(daemon): keep a launchd agent whose state uninstall cannot observe

albedo daemon uninstall on macOS stops a managed daemon over HTTP before it boots the agent out, so the daemon drains and its kernels survive. It decides whether the daemon is managed from a classification taken after its first observation. When a launchctl print failed there, the classification was "manager unavailable", uninstall skipped the shutdown, the next observation succeeded, and the bootout then ended the ready daemon and its work. The contract says a failed shutdown ends the uninstall and forces nothing down. uninstall now stops when its classification is unknown, and keeps the registration and the plist. A retry, once launchd answers, stops the daemon first as usual. TestLaunchdUninstallKeepsADaemonItCouldNotClassify replays it against the fake launchd: install, then uninstall with its third print failing. It fails without the fix. It needs the UseLaunchctl seam and the fake from the preceding commit, since the launchd paths could not run on Linux before it.


Author aly.codes
Date Commit Parent 8a425e6f