Skip to content

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 web typecheck for optional script env

Julius Marmingea99993329796
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx
index 0e0a05ad9..0a5a5ea95 100644
--- a/apps/web/src/components/ChatView.tsx
+++ b/apps/web/src/components/ChatView.tsx
@@ -702,7 +702,7 @@ export default function ChatView() {
script,
threadId: activeThreadId,
worktreePath: activeThread.worktreePath ?? null,
- extraEnv: options?.env,
+ ...(options?.env ? { extraEnv: options.env } : {}),
}),
);