Skip to content

Commit d2c3ef1

Browse files
author
Theodore Li
committed
Always return isDeployed for undeploy chat
1 parent 7316482 commit d2c3ef1

File tree

1 file changed

+9
-1
lines changed
  • apps/sim/lib/copilot/orchestrator/tool-executor/deployment-tools

1 file changed

+9
-1
lines changed

apps/sim/lib/copilot/orchestrator/tool-executor/deployment-tools/deploy.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ export async function executeDeployChat(
8989
await db.delete(chat).where(eq(chat.id, existing[0].id))
9090
return {
9191
success: true,
92-
output: { workflowId, success: true, action: 'undeploy', isChatDeployed: false },
92+
output: {
93+
workflowId,
94+
success: true,
95+
action: 'undeploy',
96+
isDeployed: true,
97+
isChatDeployed: false,
98+
},
9399
}
94100
}
95101

@@ -257,6 +263,8 @@ export async function executeDeployMcp(
257263

258264
mcpPubSub?.publishWorkflowToolsChanged({ serverId, workspaceId })
259265

266+
// Intentionally omits `isDeployed` — removing from an MCP server does not
267+
// affect the workflow's API deployment.
260268
return {
261269
success: true,
262270
output: { workflowId, serverId, action: 'undeploy', removed: true },

0 commit comments

Comments
 (0)