Skip to content
Discussion options

You must be logged in to vote

Separate Git worktrees provide a workaround for the current snapshot behavior. Ordinary subdirectories don't isolate it, because locateGitWorkspace resolves each session's directory to the repository root.

From the repository, create a worktree for each task and open each session in its corresponding directory.

git worktree add -b task-a ../project-task-a HEAD
git worktree add -b task-b ../project-task-b HEAD

These start from committed HEAD. Existing uncommitted changes are not copied into them.

One caveat with filtering to captured paths is that captures cover filesystem-tool mutations, not arbitrary shell writes. That filter would lose shell-only edits. It also wouldn't establish owners…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cinast
Comment options

Answer selected by cinast
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants