Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): terminals recreate a worktree removed by storage cleanup #24156

MergedTonybynMp4(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/24156/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 12 additions and 131 deletions (loading 4).

x
0 of 5 viewed, 5 left
12 additions and 131 deletionsapps/server/src/orchestration-v2/ProviderTurnStartService.tsModified
View file
@@ -35,7 +35,7 @@
import * as ProjectService from "../project/ProjectService.ts";
import * as ProviderAuthService from "../provider/ProviderAuthService.ts";
import * as ServerSettings from "../serverSettings.ts";
-import { makeIsManagedWorktreePath } from "../worktreesDirectory.ts";
+import { makeRestoreMissingWorktree } from "../workspace/restoreMissingWorktree.ts";
import * as EventSink from "./EventSink.ts";
import * as ProviderUsageAnalytics from "../telemetry/ProviderUsageAnalytics.ts";
import * as ContextHandoffService from "./ContextHandoffService.ts";
@@ -77,28 +77,6 @@
},
) {}
​
-class WorktreeRecreateError extends Schema.TaggedError<WorktreeRecreateError>()(
- "WorktreeRecreateError",
- {
- worktreePath: Schema.String,
- branch: Schema.String,
- cause: Schema.Defect(),
- },
-) {
- override get message(): string {
- return `Could not recreate the worktree for branch '${this.branch}' at ${this.worktreePath}.`;
- }
-}
-​
-class WorktreeRecreateNoBaseError extends Schema.TaggedError<WorktreeRecreateNoBaseError>()(
- "WorktreeRecreateNoBaseError",
- { worktreePath: Schema.String, branch: Schema.String },