Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): storage cleanup no longer reports idle threads on a branchless checkout as busy #29027

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

Showing 2 changed files with 10 additions and 8 deletions.

x
0 of 2 viewed, 2 left
8 additions and 4 deletionsapps/server/src/storageCleanup.test.tsModified
View file
@@ -1080,6 +1080,8 @@
it.effect.each([
"idle",
"grandchild",
+ "branchless",
+ "branchless-running",
"null-branch",
"stale-branch",
"isolated-owner",
@@ -1111,7 +1113,7 @@
const root = shell({
- branch: "feature",
+ branch: ["branchless", "branchless-running"].includes(scenario) ? null : "feature",
worktreePath: fixture.worktree,
settledAt: scenario === "child-settled-only" ? null : at(-20 * DAY_MS),
...(scenario === "isolated-owner" || scenario === "fork-owner"
@@ -1153,7 +1155,7 @@
: "subagent",
...(scenario === "side-chat" ? { sideChat: true } : {}),
- status: scenario === "running" ? "running" : "completed",
+ status: ["running", "branchless-running"].includes(scenario) ? "running" : "completed",
pendingBackgroundTasks: scenario === "pending" ? [{ taskId: "task", kind: "command" }] : [],
latestRunCompletedAt:
scenario === "recent-activity" || scenario === "recent-inactive"