feat: move worktree storage to ~/.workstreams/ external directory#110
Merged
amandal0903 merged 7 commits intomainfrom Apr 12, 2026
Merged
feat: move worktree storage to ~/.workstreams/ external directory#110amandal0903 merged 7 commits intomainfrom
amandal0903 merged 7 commits intomainfrom
Conversation
Worktrees now live outside the repository under a central ~/.workstreams/ directory. This eliminates .gitignore management, git-in-git nesting, and gives VS Code a proper project name in the title bar. Structure: ~/.workstreams/<repoName>/<branchName>/<repoName>/ Metadata: ~/.workstreams/<repoName>/<branchName>/workstream.json Comments: ~/.workstreams/<repoName>/<branchName>/comments.json Images: ~/.workstreams/<repoName>/<branchName>/images/ Bumps version to 0.2.15.
Worktrees under ~/.workstreams/ are managed by the orchestrator and should bypass the workspace trust dialog. Adds an isWorkstreamsWorktree check in doGetUriTrustInfo so all trust lookups (folder swap, git extension) resolve as trusted for these paths.
Comments were keyed by worktree.name (display name like "Update worktree directory") instead of worktree.branch (git branch like "update-worktree-directory"). This caused comments to be saved in a different directory than branchDir() uses for metadata, and would orphan comments if the display name ever changed.
Deploying workstreams with
|
| Latest commit: |
90ae9f0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ddb664da.workstreams-31f.pages.dev |
| Branch Preview URL: | https://update-worktree-directory.workstreams-31f.pages.dev |
The git extension auto-discovers worktree repos under ~/.workstreams/ and registers them as separate SCM providers. Skip these unless the repo is the current workspace folder (the active worktree).
Tests do heavy git I/O (create repos, worktrees, remotes, push) which can exceed the default 2s mocha timeout.
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
~/.workstreams/<repoName>/<branchName>/<repoName>/— eliminates .gitignore management, git-in-git nesting,and shows the project name in VS Code's title bar
~/.workstreams/<repoName>/<branchName>/ensureGitignore(),.workstreamstraversal filter and sub-repo skip in git extension