Repository navigation
fix(host): refuse a second host on the same home, and close terminals for CLI archive, kill and delete - #586
Merged
Merged
Conversation
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.
ace servenow records its port in$ACE_HOME/host.port, and refuses to start while another host still answers on that port with the same home. The refusal names that host, its PID and its command. A stale file, or a port now held by a different home, doesn't block.ace archive,unarchive,deleteandkillgo through its gateway, like the app, so the channel's terminals close. Without a running host they act on the catalog directly, as before.Map: ^891, ^776 (ace-map).
Smoke-tested from this lane on loopback hosts with their own home:
ace serve --port 4444on the same home: refused with "… is already served by a command-line Ace host (PID …) on port 4443".sleeprunning in a terminal in each of three channels,ace archive,ace killandace deleteeach ended their own channel's shell.ace unarchiveworked too.ace archivestill archived. Restarts on 4443 and then 4444 over the stalehost.portboth started.Built in Ace
No: Claude Code (the ace2-90 fix-train session) wrote and smoke-tested this through headless hosts, Playwright and the CLI. See #5.