Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: make bulk thread deletion reliable #12189

Closed0x00-sys(GitHub profile, opens in a new tab)wants to merge 19 commits intomain fromrefs/pull/12189/headopened View on GitHub

Showing 26 changed files with 141 additions and 4 deletions (loading 23).

x
0 of 26 viewed, 26 left
1 addition and 0 deletionsapps/server/src/environment/ServerEnvironment.tsModified
View file
@@ -223,6 +223,7 @@
inlineMessageContext: true,
requiredWorktreeBootstrap: true,
threadSettlement: true,
+ recoverableThreadDeletion: true,
threadAutoSettlement: true,
storageCleanup: true,
projectWorktreeCleanup: true,
81 additions and 0 deletionsapps/server/src/orchestration/Layers/OrchestrationEngine.test.tsModified
View file
@@ -20,6 +20,8 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import { it as effectIt } from "@effect/vitest";
import * as Effect from "effect/Effect";
+import * as Deferred from "effect/Deferred";
+import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as ManagedRuntime from "effect/ManagedRuntime";
import * as Metric from "effect/Metric";
@@ -54,6 +56,7 @@
} from "../Services/ProjectionPipeline.ts";
import { ProjectionSnapshotQuery } from "../Services/ProjectionSnapshotQuery.ts";
import { ServerConfig } from "../../config.ts";
+import { removeUnusedWorktree } from "../threadWorktreeDeletion.ts";
​
const asProjectId = (value: string): ProjectId => ProjectId.make(value);
const asMessageId = (value: string): MessageId => MessageId.make(value);