Repository navigation
fix(host): keep the directory's service URLs across host restarts - #556
Merged
Merged
Conversation
directory.json now records the app, hosted, and compute URLs from the last successful sync, so cloud options and the web app origin appear at start and while the directory is unreachable. Joining, changing, or leaving the directory rewrites or removes the file, which drops them. Why: apps/host/src/directory.ts#function remember | only a directory.json naming the synced URL records services; ACE_DIRECTORY alone must not create the file
This was referenced Oct 22, 2026
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.
Addresses gap g5 from the onboarding map. Part of #543.
The host kept the directory's
GET /answer only in memory, so after every Ace Helper restart the team's services (HOSTED, APP, COMPUTE) were missing until the first sync succeeded, and permanently while the directory was unreachable: no "Move to cloud", no "Run in cloud", no web app origin from the directory.<ACE_HOME>/directory.jsonnow also recordsapp,hosted, andcomputefrom the last successful sync; the host loads them at start and each sync rewrites them when they change.ACE_DIRECTORYalone never creates the file.url. This is host config, not channel data.Smoke test with a source host on port 4412 (isolated
ACE_HOME,ACE_CONFIG_HOME,ACE_KEYCHAIN_SERVICE) againstservices/directoryunder localwrangler devwith APP/HOSTED/COMPUTE vars: after the first syncdirectory.jsonheld all three; with the directory stopped, a restarted host still offered thecloudmove target andace webprinted the directory's app;ace directory offremoved the file, and both disappeared.bun typesandbun run cipass.Built in Ace
No. Claude Code worked outside Ace, in a lane, while the user was away and unattended work could not run in an Ace channel. See #5.