@devries-cameron20 / t3code-1 / commits / 4a23e9e1bf
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(relay): read migrations in checkout paths with spaces (#30080)

Co-authored-by: Dominik <git@domko.sbs>

domvox committed Nov 4, 2026 at 00:46 UTC 4a23e9e1bf126e858037060996f5278e2ecddaa9
1 file changed +5 -1
infra/relay/src/environments/ManagedTunnelLimits.test.ts
+5 -1
@@ -4,6 +4,7 @@ import * as Context from "effect/Context";
4 import * as Effect from "effect/Effect";
5 import * as FileSystem from "effect/FileSystem";
6 import * as Layer from "effect/Layer";
7 +import * as Path from "effect/Path";
8 import * as Semaphore from "effect/Semaphore";
9 import { PGlite } from "@electric-sql/pglite";
10 import { drizzle } from "drizzle-orm/pglite";
@@ -187,7 +188,10 @@ describe("ManagedTunnelLimits", () => {
188 Effect.promise(() => PGlite.create()),
189 (client) => Effect.promise(() => client.close()),
190 );
190 - const migrationsDir = new URL("../../migrations/postgres/", import.meta.url).pathname;
191 + const path = yield* Path.Path;
192 + const migrationsDir = yield* path.fromFileUrl(
193 + new URL("../../migrations/postgres/", import.meta.url),
194 + );
195 const migrations = (yield* fs.readDirectory(migrationsDir)).toSorted();
196 const applyMigrations = (names: ReadonlyArray<string>) =>
197 Effect.forEach(names, (name) =>