fix(workflow): 复制后重命名的二次保存也刷新 chooses

- copyWorkflow 的 label 二次保存改走完整 updateWorkflow 包装
- 自动携带 platformId/inputs 并调用 chooses,避免复制场景描述被重置
- 重新生成 dist/mcp/server.js
This commit is contained in:
gitea committed 2026-10-28 10:56:05 +08:00
1 parent 1d24c022ab
commit ac61825ed6
2 files changed
+196 -196

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ export async function copyWorkflow(
const result = await api.copyWorkflow(client, pipelineId, cloned);
if (options.label && result.label !== options.label) {
result.label = options.label;
return api.updateWorkflow(client, result);
return updateWorkflow(client, result, options.platformId ?? (result as any).platformId);
}
return result;
}