Repository navigation
Match source account names when copying over SSH - #15430
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.
Copying subscriptions to an older Omarchy machine failed when its receiver was not installed. Existing destination account names were also retained, so the source's Main could become Main 2 or refer to a different account on the destination.
Copy now synchronizes account names and command IDs with the source, including accounts already present, while keeping credentials, home paths, switching preferences, and the selected identity. Batch renaming handles swaps; unrelated destination accounts are renamed only when their names or IDs conflict. Existing credentials are replaced only with
--replace.Supply a temporary receiver over SSH stdin when needed. The remote shell skips user profiles and
BASH_ENV, loads only Omarchy's system environment bootstrap, and runs/usr/bin/python3 -I. Compatible installed receivers take precedence. When an installed receiver lacks name synchronization, use the destination's own backend with the bundled receiver to preserve newer registry fields. No receiver code is installed, and credentials stay out of command arguments.Validated with fixture transfer tests, actual shell and Python isolation, malformed and oversized input, installed receiver preference, newer destination registry preservation, name swaps and collisions, and CLI checks. Verified a real transfer to an older Omarchy machine and synchronized all three Claude names and IDs without replacing its existing credentials.
Claude reviewed the implementation; its source-ID collision finding is fixed and covered by default-name and numeric-suffix regressions. The fallback backend API matches the release that introduced account copy. Account, recovery, transfer, and CLI regression checks pass.