diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 0e0a05ad9089f94fada67d6f34672ab71b6b8a7f..0a5a5ea951705dfd8f891f9d83e823b6db9e012d 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 } : {}), }), );