AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend/builder): add markerEnd to chat-applied edges so arrowheads render correctly
Zamil Majdy478b60ce5d67
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.tsindex f16bd0b219..6e8a0163d3 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@@ -4,6 +4,7 @@ import { environment } from "@/services/environment";import { useToast } from "@/components/molecules/Toast/use-toast";import { useChat } from "@ai-sdk/react";import { DefaultChatTransport } from "ai";+import { MarkerType } from "@xyflow/react";import {type KeyboardEvent,useEffect,@@ -380,6 +381,13 @@ export function useBuilderChatPanel({sourceHandle: action.sourceHandle,targetHandle: action.targetHandle,type: "custom",+ // Match the markerEnd style used by addEdge in edgeStore so+ // chat-applied edges render with the same arrowhead as manually drawn ones.+ markerEnd: {+ type: MarkerType.ArrowClosed,+ strokeWidth: 2,+ color: "#555",+ },},]);} else {