Merged
Conversation
Adds ability to clone existing workspaces with all their data: - CLI command: perry clone <source> <clone-name> - API endpoint: workspaces.clone - Clones both home and docker volumes using alpine container - Allocates new SSH port for clone - Preserves source workspace data and state - Includes E2E tests for clone functionality Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Comment on lines
+487
to
+496
| export async function cloneVolume(sourceVolume: string, destVolume: string): Promise<void> { | ||
| if (await volumeExists(destVolume)) { | ||
| throw new Error(`Volume '${destVolume}' already exists`); | ||
| } | ||
|
|
||
| await createVolume(destVolume); | ||
|
|
||
| try { | ||
| await docker([ | ||
| 'run', |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Prevents silent data loss by checking that the source volume exists before attempting to clone. Docker auto-creates empty volumes when mounting non-existent ones, which would result in an empty clone. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Instead of generating a fresh .claude.json that overwrites the container's existing config, now reads the existing config and merges host MCP servers into it. This preserves Claude Code's state while adding global MCP servers. - Add readContainerFile to SyncContext for reading files from container - Update claude-code sync to merge mcpServers into existing config Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Web UI: Clone button in navbar and settings tab with dialog - Mobile: Clone section in workspace settings with modal - Docs: Add perry clone to CLI reference - Docs: New Common Workflows page with cloning, port forwarding, etc. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
perry clone <source> <clone-name>CLI commandworkspaces.cloneAPI endpointTest plan
🤖 Generated with Claude Code