Repository navigation
fix(core): stop the host API from starting at login once core is down - #135
Merged
Merged
Conversation
Contributor
Author
|
Both problems confirmed on the remote test Mac before the fix, on the previous
Unit: |
Contributor
Author
|
After the fix, on the remote test Mac, in a scratch instance:
The first-run install lane on this branch ( |
`stack down core` only unloaded the `dev.famstack.api` LaunchAgent and left its plist in `~/Library/LaunchAgents` with RunAtLoad set. At the next login launchd started the API on port 42001 again while core was reported down. After `stack destroy core` or `stack uninstall` the plist pointed at a wrapper in the deleted data dir, and launchd kept trying to spawn it. core's stop hook now unloads the agent and removes the plist, so down, destroy and uninstall leave nothing for launchd to start. `stack up core` writes it again as before. A plist with the same label that starts another instance's wrapper is left loaded and in place.
arthware-dev
force-pushed
the
fix/core-launchagent
branch
from
September 24, 2026 21:28
cf591ea to
d7c69ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stack down coreleft thedev.famstack.apiLaunchAgent in~/Library/LaunchAgentswith RunAtLoad, so the next login started the host API on 42001 while core was reported down. Afterstack destroy coreorstack uninstallit pointed at a deleted wrapper and launchd kept respawning it.stack up corewrites it again. A plist with the same label that starts another instance's wrapper is left alone.