From 371bd38f371f8739bccb7be539772902938e2136 Mon Sep 17 00:00:00 2001 From: MechMel <15083231+MechMel@users.noreply.github.com> Date: Thu, 9 Jul 2026 14:48:22 -0700 Subject: [PATCH] fix: persist action preview url settings --- apps/web/src/components/ChatView.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index f5ea5bb1eba..8dbb2de7381 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -2609,6 +2609,9 @@ function ChatViewContent(props: ChatViewProps) { command: input.command, icon: input.icon, runOnWorktreeCreate: input.runOnWorktreeCreate, + ...(input.previewUrl !== null + ? { previewUrl: input.previewUrl, autoOpenPreview: input.autoOpenPreview } + : {}), }; const nextScripts = input.runOnWorktreeCreate ? [ @@ -2649,6 +2652,9 @@ function ChatViewContent(props: ChatViewProps) { command: input.command, icon: input.icon, runOnWorktreeCreate: input.runOnWorktreeCreate, + ...(input.previewUrl !== null + ? { previewUrl: input.previewUrl, autoOpenPreview: input.autoOpenPreview } + : { previewUrl: undefined, autoOpenPreview: undefined }), }; const nextScripts = activeProject.scripts.map((script) => script.id === scriptId