@devries-cameron20 / t3code Mirror · read-only / commits / d48b42c017
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 16:00 UTC

fix type

Julius Marminge committed Feb 27, 2026 at 21:32 UTC d48b42c0174f7ed26de8fdd1b0f4f75c82c71fe7
1 file changed +5 -5
apps/server/src/provider/Layers/ProviderService.ts
+5 -5
@@ -93,14 +93,14 @@ function toRuntimePayloadFromSession(session: ProviderSession): Record<string, u
93 };
94 }
95
96 -function readPersistedCwd(runtimePayload: ProviderSessionBinding["runtimePayload"]): string | undefined {
96 +function readPersistedCwd(
97 + runtimePayload: ProviderSessionBinding["runtimePayload"],
98 +): string | undefined {
99 if (!runtimePayload || typeof runtimePayload !== "object" || Array.isArray(runtimePayload)) {
100 return undefined;
101 }
100 - const rawCwd = runtimePayload.cwd;
101 - if (typeof rawCwd !== "string") {
102 - return undefined;
103 - }
102 + const rawCwd = "cwd" in runtimePayload ? runtimePayload.cwd : undefined;
103 + if (typeof rawCwd !== "string") return undefined;
104 const trimmed = rawCwd.trim();
105 return trimmed.length > 0 ? trimmed : undefined;
106 }