diff --git a/web/app/components/base/chat/chat/hooks.ts b/web/app/components/base/chat/chat/hooks.ts index c9b9a29f34..56f2b44de5 100644 --- a/web/app/components/base/chat/chat/hooks.ts +++ b/web/app/components/base/chat/chat/hooks.ts @@ -343,7 +343,8 @@ export const useChat = ( tool_elapsed_time, }: any) => { if (!isAgentMode) { - responseItem.content = responseItem.content + message + if (chunk_type === 'text') + responseItem.content = responseItem.content + message } else { const lastThought = responseItem.agent_thoughts?.[responseItem.agent_thoughts?.length - 1] diff --git a/web/app/components/workflow/nodes/_base/components/form-input-item.tsx b/web/app/components/workflow/nodes/_base/components/form-input-item.tsx index 7b3a3a108f..2000af5d5a 100644 --- a/web/app/components/workflow/nodes/_base/components/form-input-item.tsx +++ b/web/app/components/workflow/nodes/_base/components/form-input-item.tsx @@ -67,6 +67,7 @@ type VariableReferenceFieldsProps = { currentTool?: Tool | Event currentProvider?: ToolWithProvider | TriggerWithProvider isFilterFileVar?: boolean + toolNodeId?: string } const VariableReferenceFields: FC = ({ diff --git a/web/app/components/workflow/panel/debug-and-preview/hooks.ts b/web/app/components/workflow/panel/debug-and-preview/hooks.ts index 7b82f10630..f501ba0e02 100644 --- a/web/app/components/workflow/panel/debug-and-preview/hooks.ts +++ b/web/app/components/workflow/panel/debug-and-preview/hooks.ts @@ -286,7 +286,8 @@ export const useChat = ( tool_error, tool_elapsed_time, }: any) => { - responseItem.content = responseItem.content + message + if (chunk_type === 'text') + responseItem.content = responseItem.content + message if (chunk_type === 'tool_call') { if (!responseItem.toolCalls) diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index a0e62ffee2..a69972cc58 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -511,7 +511,7 @@ }, "app/components/app/create-app-modal/index.tsx": { "react-hooks-extra/no-direct-set-state-in-use-effect": { - "count": 1 + "count": 2 }, "ts/no-explicit-any": { "count": 1 @@ -2394,6 +2394,16 @@ "count": 24 } }, + "app/components/plugins/plugin-detail-panel/tool-selector/sections/tool-authorization-section.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/tool-selector/sections/tool-settings-section.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, "app/components/plugins/plugin-detail-panel/tool-selector/tool-credentials-form.tsx": { "ts/no-explicit-any": { "count": 3 @@ -2886,6 +2896,11 @@ "count": 2 } }, + "app/components/workflow/custom-group-node/custom-group-node.tsx": { + "unused-imports/no-unused-vars": { + "count": 1 + } + }, "app/components/workflow/header/run-mode.tsx": { "no-console": { "count": 1 @@ -3034,8 +3049,11 @@ } }, "app/components/workflow/nodes/_base/components/form-input-item.tsx": { + "style/indent": { + "count": 19 + }, "ts/no-explicit-any": { - "count": 33 + "count": 34 } }, "app/components/workflow/nodes/_base/components/input-support-select-var.tsx": { @@ -3254,6 +3272,11 @@ "count": 5 } }, + "app/components/workflow/nodes/command/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, "app/components/workflow/nodes/components.ts": { "ts/no-explicit-any": { "count": 2 @@ -3487,6 +3510,16 @@ "count": 1 } }, + "app/components/workflow/nodes/llm/panel.tsx": { + "unused-imports/no-unused-imports": { + "count": 1 + } + }, + "app/components/workflow/nodes/llm/types.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, "app/components/workflow/nodes/llm/use-config.ts": { "react-hooks-extra/no-direct-set-state-in-use-effect": { "count": 2 @@ -3962,6 +3995,11 @@ "count": 4 } }, + "app/components/workflow/skill/editor/code-file-editor.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, "app/components/workflow/store/workflow/debug/inspect-vars-slice.ts": { "ts/no-explicit-any": { "count": 2 @@ -4003,6 +4041,9 @@ "app/components/workflow/utils/node.ts": { "regexp/no-super-linear-backtracking": { "count": 1 + }, + "ts/no-empty-object-type": { + "count": 1 } }, "app/components/workflow/utils/tool.ts": { @@ -4012,7 +4053,7 @@ }, "app/components/workflow/utils/workflow-init.ts": { "ts/no-explicit-any": { - "count": 12 + "count": 13 } }, "app/components/workflow/utils/workflow.ts": { @@ -4159,6 +4200,11 @@ "count": 1 } }, + "eslint-suppressions.json": { + "style/eol-last": { + "count": 1 + } + }, "hooks/use-async-window-open.spec.ts": { "ts/no-explicit-any": { "count": 6 @@ -4449,7 +4495,7 @@ }, "types/workflow.ts": { "ts/no-explicit-any": { - "count": 15 + "count": 18 } }, "utils/clipboard.ts": {