core: add sandbox support for git worktrees to allow working in multiple directories per project

This commit is contained in:
Dax Raad
2026-01-03 18:52:53 -05:00
parent f6cc84747a
commit 0b4af95223
4 changed files with 89 additions and 35 deletions

View File

@@ -200,8 +200,6 @@ export namespace Worktree {
throw new CreateFailedError({ message: errorText(created) || "Failed to create git worktree" })
}
await Project.addSandbox(Instance.project.id, info.directory)
const cmd = input?.startCommand?.trim()
if (!cmd) return info