Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): storage cleanup no longer runs a full status or size walk for worktrees it keeps #17911

Mergedtris203(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/17911/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 2 changed files with 99 additions and 2 deletions (loading 1).

x
0 of 2 viewed, 2 left
99 additions and 2 deletionsapps/server/src/storageCleanup.test.tsModified
View file
@@ -24,6 +24,7 @@
import * as ProjectStore from "./orchestration-v2/ProjectStore.ts";
import * as Orchestrator from "./orchestration-v2/Orchestrator.ts";
import * as TerminalManager from "./terminal/Manager.ts";
+import { CodexProviderCapabilitiesV2 } from "./orchestration-v2/Adapters/CodexAdapterV2.ts";
import { ServerActivation } from "./serverActivation.ts";
import { describe, expect, it } from "@effect/vitest";
import {
@@ -248,6 +249,8 @@
let threads = [shell({ branch: "feature", worktreePath: worktree })];
let editBeforeRemoval = false;
+ let openSessionCwd: string | null = null;
+ let fullStatusCalls = 0;
const context = yield* Layer.build(StorageCleanup.layer).pipe(
Effect.provideService(GitVcsDriver.GitVcsDriver, {
...git,
@@ -257,6 +260,10 @@
yield* fs.writeFileString(`${worktree}/tracked.txt`, "late edit\n");
return yield* git.execute(input);
}),
+ statusDetailsLocal: (...args) => {
+ fullStatusCalls++;
+ return git.statusDetailsLocal(...args);
+ },
}),
Effect.provideService(Settings.ServerSettingsService, {
getSettings: Effect.sync(() => settings),