Let sibling worktrees coexist and quiet upgrade bounce alerts - #10
Merged
Conversation
Auto-rebind and ephemeral worktree hosts keep both checkouts supervised, while unrelated holders stay a loud refuse and agents always see the live URL.
When a registered project path is gone, the daemon stops children (with start-time identity checks so recycled PIDs are never signaled), drops registry/state/locks, and frees the ephemeral worktree host on boot and status --all, without a doctor --fix pass.
Sibling rebind frees portSpan and named subports together, resume refuses a dirty claim instead of racing a bind, and why keeps terminal evidence across ensure truncate so exit-0 refusals stay diagnosable.
Install/restart was racing recover, double-spawning siblings onto the same port and banner-notifying expected daemon-restart events; why also skipped file-backed specs.
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
devservers.json: auto-rebind, ephemeralworktree-*.localhosthosts, and agent context that points at the live URLstatus --all, with identity-safe teardown so recycled PIDs are never signaledwhykeeps terminal evidence and works for file-backed projectsdaemon-restartbounce events, finishes recover before accepting clients, and restores serially so siblings do not double-claim a portTest plan
make testscripts/smoke.shstatus --allstops its servers and drops registry stateEADDRINUSEracesdevctl whyon a file-only trusted project (no ad-hoc registry specs) returns real findingsportEnv+portSpanrebinds the whole block on a sibling ensure