Skip to content

Commit 5b586b0

Browse files
author
Theodore Li
committed
fix(workflow) fix mothership double-running workflows
1 parent 738d51a commit 5b586b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/sim/app/api/mothership/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export async function POST(req: NextRequest) {
261261
chatId: actualChatId,
262262
goRoute: '/api/mothership',
263263
autoExecuteTools: true,
264-
interactive: false,
264+
interactive: true,
265265
onComplete: async (result: OrchestratorResult) => {
266266
if (!actualChatId) return
267267

apps/sim/lib/copilot/chat-streaming.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export function createSSEStream(params: StreamingOrchestrationParams): ReadableS
174174
try {
175175
await orchestrateCopilotStream(requestPayload, {
176176
...orchestrateOptions,
177+
interactive: true,
177178
abortSignal: abortController.signal,
178179
onEvent: async (event) => {
179180
await pushEvent(event)

0 commit comments

Comments
 (0)