Skip to content

Commit ae3dcf0

Browse files
committed
fix(workflows): scrub placeholder descriptions at the import boundary
1 parent c936419 commit ae3dcf0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/sim/lib/workflows/operations/import-export.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
type WorkflowStateContractInput,
1212
workflowVariablesContract,
1313
} from '@/lib/api/contracts/workflows'
14+
import { getMeaningfulWorkflowDescription } from '@/lib/mcp/workflow-tool-schema'
1415
import { migrateSubblockIds } from '@/lib/workflows/migrations/subblock-migrations'
1516
import {
1617
type ExportWorkflowState,
@@ -677,7 +678,11 @@ export async function persistImportedWorkflow({
677678

678679
const createdWorkflow = await createWorkflow({
679680
name: workflowName,
680-
description: descriptionOverride || workflowData.metadata?.description || '',
681+
description:
682+
getMeaningfulWorkflowDescription(
683+
descriptionOverride || workflowData.metadata?.description,
684+
workflowName
685+
) ?? '',
681686
workspaceId,
682687
folderId,
683688
sortOrder,

0 commit comments

Comments
 (0)