From 5b586b05dc148a88efef26d4a3828a9edb7928b7 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Mon, 16 Mar 2026 16:37:20 -0700 Subject: [PATCH 1/2] fix(workflow) fix mothership double-running workflows --- apps/sim/app/api/mothership/chat/route.ts | 2 +- apps/sim/lib/copilot/chat-streaming.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/api/mothership/chat/route.ts b/apps/sim/app/api/mothership/chat/route.ts index 247f70360e6..8cd9d40cc4c 100644 --- a/apps/sim/app/api/mothership/chat/route.ts +++ b/apps/sim/app/api/mothership/chat/route.ts @@ -261,7 +261,7 @@ export async function POST(req: NextRequest) { chatId: actualChatId, goRoute: '/api/mothership', autoExecuteTools: true, - interactive: false, + interactive: true, onComplete: async (result: OrchestratorResult) => { if (!actualChatId) return diff --git a/apps/sim/lib/copilot/chat-streaming.ts b/apps/sim/lib/copilot/chat-streaming.ts index ea266eb9338..87eb5e526f9 100644 --- a/apps/sim/lib/copilot/chat-streaming.ts +++ b/apps/sim/lib/copilot/chat-streaming.ts @@ -174,6 +174,7 @@ export function createSSEStream(params: StreamingOrchestrationParams): ReadableS try { await orchestrateCopilotStream(requestPayload, { ...orchestrateOptions, + interactive: true, abortSignal: abortController.signal, onEvent: async (event) => { await pushEvent(event) From a7a5443243350c9d2a812b8968ca98535f745521 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Mon, 16 Mar 2026 16:54:38 -0700 Subject: [PATCH 2/2] Remove interactive override --- apps/sim/lib/copilot/chat-streaming.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/sim/lib/copilot/chat-streaming.ts b/apps/sim/lib/copilot/chat-streaming.ts index 87eb5e526f9..ea266eb9338 100644 --- a/apps/sim/lib/copilot/chat-streaming.ts +++ b/apps/sim/lib/copilot/chat-streaming.ts @@ -174,7 +174,6 @@ export function createSSEStream(params: StreamingOrchestrationParams): ReadableS try { await orchestrateCopilotStream(requestPayload, { ...orchestrateOptions, - interactive: true, abortSignal: abortController.signal, onEvent: async (event) => { await pushEvent(event)