diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/MessageList.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/MessageList.tsx index e63ad29616..b9723ef833 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/MessageList.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/MessageList.tsx @@ -156,16 +156,14 @@ export function MessageList({ {textParts && {textParts}} {/* Render tool parts (edit_agent, run_agent, etc.) via the shared copilot renderer which knows how to display each tool type. */} - {(msg.parts ?? []) - .filter(isDynamicToolPart) - .map((part, i) => ( - - ))} + {(msg.parts ?? []).filter(isDynamicToolPart).map((part, i) => ( + + ))} ) : ( textParts diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelInput.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelInput.tsx index c2c69d27b5..10d33218d2 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelInput.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelInput.tsx @@ -61,7 +61,7 @@ export function PanelInput({ type="button" onClick={onSend} disabled={isDisabled || !value.trim()} - className="flex h-9 w-9 items-center justify-center rounded-lg bg-violet-600 text-white transition-colors hover:bg-violet-700 disabled:opacity-40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 focus-visible:ring-offset-2" + className="flex h-9 w-9 items-center justify-center rounded-lg bg-violet-600 text-white transition-colors hover:bg-violet-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 focus-visible:ring-offset-2 disabled:opacity-40" aria-label="Send" > diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/useBuilderChatPanel.ts b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/useBuilderChatPanel.ts index dc0e069ed5..1b857fb595 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/useBuilderChatPanel.ts +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/useBuilderChatPanel.ts @@ -463,9 +463,9 @@ export function useBuilderChatPanel({ } } lastScannedToolCallIndexRef.current = messages.length - 1; - // flowID is included so this effect re-runs on navigation, mirroring the - // parse-actions effect. This ensures the skip guard is consumed in the - // correct render cycle even when a stream is active during navigation. + // flowID is included so this effect re-runs on navigation, mirroring the + // parse-actions effect. This ensures the skip guard is consumed in the + // correct render cycle even when a stream is active during navigation. }, [messages, status, onGraphEdited, setQueryStates, flowID]); // Close the panel on Escape when focus is inside the panel, so pressing Escape