Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a worktree handoff on Claude or Pi completes its run and starts the continuation #36360

Mergedjuliusmarmingemerged 4 commits intomain fromrefs/pull/36360/headmerged by juliusmarminge View on GitHub

Showing 12 changed files with 47 additions and 68 deletions (loading 9).

x
0 of 12 viewed, 12 left
12 additions and 39 deletionsapps/server/src/mcp/WorktreeMcpService.test.tsModified
View file
@@ -106,7 +106,6 @@
readonly threadAttachedOnRecheck?: boolean;
readonly threadArchivedOnRecheck?: boolean;
readonly threadReadFailsOnRecheck?: boolean;
- readonly continuation?: "queued" | "fails" | "dies";
readonly projectMissing?: boolean;
readonly projectReadFails?: boolean;
readonly existingBranchWorktreePath?: string | null;
@@ -179,22 +178,6 @@
? Effect.succeed(makeProjection(thread))
: Effect.fail(new OrchestratorProjectionError({ threadId: id }));
});
- const sendToThread = vi.fn((_: unknown) => {
- switch (options.continuation ?? "queued") {
- case "fails":
- return Effect.fail(
- new ThreadManagementService.ThreadManagementThreadArchivedError({
- threadId,
- }),
- );
- case "dies":
- return Effect.die(new Error("send defect"));
- default:
- return Effect.succeed({
- delivery: "queued",
- } as ThreadManagementService.ThreadManagementSendResult);
- }
- });
const getById = vi.fn((id: ProjectId) =>