fix(server): recreate a thread's worktree before starting a turn (#7839)
This commit is contained in:
1 parent
17822fab70
commit
01fc7d228d
5 files changed
+124
No files matched your search
@@ -84,6 +84,9 @@ export class GitWorkflowService extends Context.Service<
|
||||
readonly removeWorktree: (
|
||||
input: VcsRemoveWorktreeInput,
|
||||
) => Effect.Effect<void, GitCommandError>;
|
||||
readonly pruneWorktrees: (input: {
|
||||
readonly cwd: string;
|
||||
}) => Effect.Effect<void, GitCommandError>;
|
||||
readonly createRef: (
|
||||
input: VcsCreateRefInput,
|
||||
) => Effect.Effect<VcsCreateRefResult, GitCommandError>;
|
||||
@@ -319,6 +322,10 @@ export const make = Effect.gen(function* () {
|
||||
ensureGitCommand("GitWorkflowService.removeWorktree", input.cwd).pipe(
|
||||
Effect.andThen(git.removeWorktree(input)),
|
||||
),
|
||||
pruneWorktrees: (input) =>
|
||||
ensureGitCommand("GitWorkflowService.pruneWorktrees", input.cwd).pipe(
|
||||
Effect.andThen(git.pruneWorktrees(input)),
|
||||
),
|
||||
createRef: (input) =>
|
||||
ensureGitCommand("GitWorkflowService.createRef", input.cwd).pipe(
|
||||
Effect.andThen(git.createRef(input)),
|
||||
|
||||
Reference in new issue
Block a user