From 5f3c8e904635b36158b948dc3f9ac358bef382d9 Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Mon, 9 Sep 2024 15:37:20 +0800 Subject: [PATCH] Fix: workflow init status (#2649) * i18n * fix: entry --- packages/service/core/workflow/dispatch/index.ts | 2 -- .../workflow/dispatch/interactive/userSelect.ts | 13 +++++-------- packages/web/i18n/zh/common.json | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/packages/service/core/workflow/dispatch/index.ts b/packages/service/core/workflow/dispatch/index.ts index 7b437efefa8b..a5fe48657814 100644 --- a/packages/service/core/workflow/dispatch/index.ts +++ b/packages/service/core/workflow/dispatch/index.ts @@ -305,8 +305,6 @@ export async function dispatchWorkFlow(data: Props): Promise { if (item.target === node.nodeId) { item.status = 'waiting'; diff --git a/packages/service/core/workflow/dispatch/interactive/userSelect.ts b/packages/service/core/workflow/dispatch/interactive/userSelect.ts index 78415ea1c075..5157bec1b04a 100644 --- a/packages/service/core/workflow/dispatch/interactive/userSelect.ts +++ b/packages/service/core/workflow/dispatch/interactive/userSelect.ts @@ -1,7 +1,4 @@ -import { - DispatchNodeResponseKeyEnum, - SseResponseEventEnum -} from '@fastgpt/global/core/workflow/runtime/constants'; +import { DispatchNodeResponseKeyEnum } from '@fastgpt/global/core/workflow/runtime/constants'; import { DispatchNodeResultType, ModuleDispatchProps @@ -26,14 +23,12 @@ type UserSelectResponse = DispatchNodeResultType<{ export const dispatchUserSelect = async (props: Props): Promise => { const { - workflowStreamResponse, - runningAppInfo: { id: appId }, histories, - chatId, - node: { nodeId, isEntry }, + node, params: { description, userSelectOptions }, query } = props; + const { nodeId, isEntry } = node; // Interactive node is not the entry node, return interactive result if (!isEntry) { @@ -48,6 +43,8 @@ export const dispatchUserSelect = async (props: Props): Promise