From 31c8ad611cea1834160e0a71825bc26d5e2d1345 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Mon, 2 Feb 2026 10:07:48 +0800 Subject: [PATCH 1/2] fix: chat conversation_id add node_start --- web/src/views/Conversation/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/views/Conversation/index.tsx b/web/src/views/Conversation/index.tsx index 12d17cda..3b7b30d5 100644 --- a/web/src/views/Conversation/index.tsx +++ b/web/src/views/Conversation/index.tsx @@ -178,6 +178,7 @@ const Conversation: FC = () => { data.forEach((item) => { switch(item.event) { case 'start': + case 'node_start': const { conversation_id: newId } = item.data as { conversation_id: string } currentConversationId = newId break From 574d0afc72318a733e96d6a751c723a00664637d Mon Sep 17 00:00:00 2001 From: zhaoying Date: Mon, 2 Feb 2026 10:28:21 +0800 Subject: [PATCH 2/2] feat(web): show code node --- web/src/views/Workflow/constant.ts | 52 +++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/web/src/views/Workflow/constant.ts b/web/src/views/Workflow/constant.ts index 25570afd..64bb5757 100644 --- a/web/src/views/Workflow/constant.ts +++ b/web/src/views/Workflow/constant.ts @@ -431,32 +431,32 @@ export const nodeLibrary: NodeLibrary[] = [ } } }, - // { type: "code", icon: codeExecutionIcon, - // config: { - // input_variables: { - // type: 'inputList', - // defaultValue: [{ name: 'arg1' }, { name: 'arg2' }] - // }, - // language: { - // type: 'select', - // defaultValue: 'python3' - // }, - // code: { - // type: 'messageEditor', - // isArray: false, - // language: ['python3', 'javascript'], - // titleVariant: 'borderless', - // defaultValue: `def main(arg1: str, arg2: str): - // return { - // "result": arg1 + arg2, - // }` - // }, - // output_variables: { - // type: 'outputList', - // defaultValue: [{name: 'result', type: 'string'}] - // }, - // } - // }, + { type: "code", icon: codeExecutionIcon, + config: { + input_variables: { + type: 'inputList', + defaultValue: [{ name: 'arg1' }, { name: 'arg2' }] + }, + language: { + type: 'select', + defaultValue: 'python3' + }, + code: { + type: 'messageEditor', + isArray: false, + language: ['python3', 'javascript'], + titleVariant: 'borderless', + defaultValue: `def main(arg1: str, arg2: str): + return { + "result": arg1 + arg2, + }` + }, + output_variables: { + type: 'outputList', + defaultValue: [{name: 'result', type: 'string'}] + }, + } + }, { type: "jinja-render", icon: templateRenderingIcon, config: { mapping: {