From 26042343d8da0668d1720e047dcb72ce6cf3fab6 Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Thu, 31 Jul 2025 16:09:45 +0800 Subject: [PATCH] Fix: Improve Agent templates functionality and fix some UI style issues (#9129) ### What problem does this PR solve? Fix: Improve Agent templates functionality and fix some UI style issues #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/components/message-input/next.tsx | 2 +- .../components/next-message-item/index.tsx | 12 ++- web/src/locales/en.ts | 9 +++ web/src/pages/agent/canvas/index.tsx | 16 +++- .../agent/chat/use-send-agent-message.ts | 2 +- web/src/pages/agent/context.ts | 2 +- web/src/pages/agent/form/begin-form/index.tsx | 3 +- .../form/begin-form/parameter-dialog.tsx | 15 +++- .../agent/form/begin-form/query-table.tsx | 8 +- web/src/pages/agent/log-sheet/index.tsx | 4 +- .../agent/log-sheet/toolTimelineItem.tsx | 26 +++++- .../agent/log-sheet/workFlowTimeline.tsx | 46 +++++------ web/src/pages/agents/agent-templates.tsx | 19 +++-- web/src/pages/agents/template-sidebar.tsx | 79 ++++++++++++++----- 14 files changed, 173 insertions(+), 70 deletions(-) diff --git a/web/src/components/message-input/next.tsx b/web/src/components/message-input/next.tsx index 2e612836b..dcbed3694 100644 --- a/web/src/components/message-input/next.tsx +++ b/web/src/components/message-input/next.tsx @@ -132,7 +132,7 @@ export function NextMessageInput({ onChange={onInputChange} placeholder="Type your message here..." className="field-sizing-content min-h-10 w-full resize-none border-0 bg-transparent p-0 shadow-none focus-visible:ring-0 dark:bg-transparent" - disabled={isUploading || disabled} + disabled={isUploading || disabled || sendLoading} onKeyDown={handleKeyDown} />