From a999933297969e269a15cda37c4999bc3b8d8c93 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 17 Feb 2026 21:07:05 -0800 Subject: [PATCH] Fix web typecheck for optional script env Only pass extraEnv to projectScriptRuntimeEnv when defined to satisfy exactOptionalPropertyTypes in CI. Co-authored-by: codex --- apps/web/src/components/ChatView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } : {}), }), ); -- 2.54.0