Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a thread whose worktree was deleted recovers on the next message #18359

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

Showing 4 changed files with 185 additions and 7 deletions (loading 3).

x
0 of 4 viewed, 4 left
185 additions and 7 deletionsapps/server/src/orchestration-v2/ProviderTurnStartService.test.tsModified
View file
@@ -3,6 +3,7 @@
import { it as effectIt } from "@effect/vitest";
import {
CheckpointScopeId,
+ GitCommandError,
MessageId,
NodeId,
ProviderSessionId,
@@ -33,6 +34,8 @@
import * as ServerConfig from "../config.ts";
import { withWorkspaceLease } from "../workspace/workspaceLease.ts";
import * as GitWorkflow from "../git/GitWorkflowService.ts";
+import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
+import { layerRealGit } from "./ProviderTurnStartService.testkit.ts";
import * as ProjectService from "../project/ProjectService.ts";
import * as ProviderAuthService from "../provider/ProviderAuthService.ts";
import * as ServerSettings from "../serverSettings.ts";
@@ -121,6 +124,7 @@
const startRootRun = vi.fn(() => Effect.void);
const pruneWorktrees = vi.fn(() => Effect.void);
const createWorktree = vi.fn(() => Effect.succeed({} as never));
+ const listLocalBranchNames = vi.fn(() => Effect.succeed(["feature/restore"]));
const layer = ProviderTurnStart.layer.pipe(
Layer.provide(
Layer.mergeAll(
@@ -142,7 +146,11 @@