@devries-cameron20 / t3code-1 / commits / c9b0da63a1
Fork 0

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

niceee

Julius Marminge committed Feb 24, 2026 at 14:17 UTC c9b0da63a11f6668619c0fc1c3901a5e84fe1d65
2 files changed +7 -8
apps/server/src/main.test.ts
+1 -1
@@ -24,7 +24,7 @@ const testLayer = Layer.mergeAll(
24 cwd: "/tmp/t3-test-workspace",
25 fixPath: Effect.void,
26 findAvailablePort,
27 - resolveStaticDir: () => Effect.undefined,
27 + resolveStaticDir: Effect.undefined,
28 } satisfies CliConfigShape),
29 Layer.succeed(Server, {
30 createServer,
apps/server/src/main.ts
+6 -7
@@ -26,7 +26,7 @@ export interface CliConfigShape {
26 readonly cwd: string;
27 readonly fixPath: Effect.Effect<unknown, never>;
28 readonly findAvailablePort: (preferred: number) => Effect.Effect<number, StartupError>;
29 - readonly resolveStaticDir: () => Effect.Effect<string | undefined>;
29 + readonly resolveStaticDir: Effect.Effect<string | undefined>;
30 }
31
32 export class CliConfig extends ServiceMap.Service<CliConfig, CliConfigShape>()(
@@ -141,7 +141,7 @@ const resolveCliConfig = Effect.fn(function* (input: CliInput) {
141 const devUrl = env.devUrl;
142 const noBrowser = env.noBrowser ?? mode === "desktop";
143 const authToken = Option.getOrUndefined(input.token) ?? env.authToken;
144 - const staticDir = devUrl ? undefined : yield* cliConfig.resolveStaticDir();
144 + const staticDir = devUrl ? undefined : yield* cliConfig.resolveStaticDir;
145
146 return {
147 mode,
@@ -245,11 +245,10 @@ export const CliConfigLive = Layer.effect(
245 cwd: process.cwd(),
246 fixPath: Effect.sync(fixPath),
247 findAvailablePort,
248 - resolveStaticDir: () =>
249 - resolveStaticDir().pipe(
250 - Effect.provideService(FileSystem.FileSystem, fileSystem),
251 - Effect.provideService(Path.Path, path),
252 - ),
248 + resolveStaticDir: resolveStaticDir().pipe(
249 + Effect.provideService(FileSystem.FileSystem, fileSystem),
250 + Effect.provideService(Path.Path, path),
251 + ),
252 } satisfies CliConfigShape;
253 }),
254 );