fix(server): release workspace watchers on shutdown

This commit is contained in:
Mohamed Boudra
2026-07-19 03:06:48 +02:00
parent 2f07c5918f
commit 4e99e4c18c
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -1609,6 +1609,7 @@ export async function createPaseoDaemon(
detachAgentStoragePersistence();
await agentStorage.flush().catch(() => undefined);
await providerSnapshotManager.shutdown();
workspaceGitService.dispose();
terminalManager.killAll();
speechService.stop();
await scheduleService.stop().catch(() => undefined);
@@ -1,5 +1,5 @@
import { execFileSync } from "node:child_process";
import { existsSync, mkdtempSync, realpathSync, rmSync, writeFileSync } from "node:fs";
import { existsSync, mkdtempSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
import os from "node:os";
import path from "node:path";
import { connectHostAutomation, connectToDaemon } from "@getpaseo/client/node";
@@ -155,7 +155,8 @@ test("normalized checkout-name collisions cannot reuse another branch", async ()
refName: "refs/heads/feature",
directoryName: "foo-bar",
});
expect(realpathSync(same.path)).toBe(realpathSync(first.path));
const firstStats = statSync(first.path);
expect(statSync(same.path)).toMatchObject({ dev: firstStats.dev, ino: firstStats.ino });
await expect(
paseo.ensureCheckout({
rootPath: repoRoot,