Skip to content

Commit d172548

Browse files
refactor(server): name storage cleanup group keys as canonical keys
AI-assisted; verified with the tests and tools listed above.
1 parent 892beb3 commit d172548

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/storageCleanup.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,11 @@ const make = Effect.gen(function* () {
901901
const deletedByPath = Map.groupBy(deletedThreads, (_thread, index) => deletedKeys[index]!);
902902
const candidates = [
903903
...[...groups].map(
904-
([worktreePath, group]) =>
904+
([worktreeKey, group]) =>
905905
// A deleted thread still owns the worktree its remaining subagents share,
906906
// but only deletion cleanup acts on it; otherwise the live rules apply.
907907
deletedByPath
908-
.get(worktreePath)
908+
.get(worktreeKey)
909909
?.find(
910910
(deleted) =>
911911
resolveWorktreeCleanup(serverSettings, deleted.projectId).worktreeOnDelete &&

0 commit comments

Comments
 (0)