Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix type
Julius Marminged48b42c0174f
diff --git a/apps/server/src/provider/Layers/ProviderService.ts b/apps/server/src/provider/Layers/ProviderService.tsindex d49dc5579..7176fb802 100644--- a/apps/server/src/provider/Layers/ProviderService.ts+++ b/apps/server/src/provider/Layers/ProviderService.ts@@ -93,14 +93,14 @@ function toRuntimePayloadFromSession(session: ProviderSession): Record<string, u};}-function readPersistedCwd(runtimePayload: ProviderSessionBinding["runtimePayload"]): string | undefined {+function readPersistedCwd(+ runtimePayload: ProviderSessionBinding["runtimePayload"],+): string | undefined {if (!runtimePayload || typeof runtimePayload !== "object" || Array.isArray(runtimePayload)) {return undefined;}- const rawCwd = runtimePayload.cwd;- if (typeof rawCwd !== "string") {- return undefined;- }+ const rawCwd = "cwd" in runtimePayload ? runtimePayload.cwd : undefined;+ if (typeof rawCwd !== "string") return undefined;const trimmed = rawCwd.trim();return trimmed.length > 0 ? trimmed : undefined;}