feat(*): support multiple linkup instances 🎭#260
Open
rebelliard wants to merge 6 commits intomentimeter:nextfrom
Open
feat(*): support multiple linkup instances 🎭#260rebelliard wants to merge 6 commits intomentimeter:nextfrom
rebelliard wants to merge 6 commits intomentimeter:nextfrom
Conversation
4bf8e86 to
0449cf3
Compare
# Conflicts: # linkup-cli/src/commands/status.rs # linkup-cli/src/services/cloudflare_tunnel.rs # linkup-cli/src/state.rs # linkup/src/config.rs
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.
User story
This PR adds multi-instance support so that each Git worktree can run its own isolated linkup environment -- separate state, ports, tunnel, and session name -- eliminating the conflicts caused by sharing a single instance.
Implementation
LINKUP_HOME). The CLI auto-detects the right one from a.envfile in the worktree, so no manual env setup is needed.local_server_portandsession_namelet each worktree bind to unique ports and claim a stable session domain.New commands
linkup instance-use <N|default>-- switch the active instance.linkup instance-remove <N>-- stop services, clean up the Cloudflare tunnel, and delete the instance directory.linkup instance-remove-all-- same as above for all instances at once.Command updates
linkup statusshows an instance summary table when more than one instance exists.Other
AGENTS.md,CONTRIBUTING.md, and.claude/config for AI agent tooling.Testing
.envresolution).cargo test -p linkup-cliUnknowns