From 1921795e423d607804e1c52dfd16afa082a5b7c8 Mon Sep 17 00:00:00 2001 From: majdyz Date: Fri, 10 Apr 2026 07:01:31 +0000 Subject: [PATCH] fix(frontend/builder): wrap BuilderChatPanel in ErrorBoundary Prevents a runtime error in action parsing or message rendering from crashing the entire build page. Uses a null fallback so the rest of the editor remains usable if the chat panel fails. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../build/components/FlowEditor/Flow/Flow.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/Flow.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/Flow.tsx index 3a55fabf1d..d99307df2d 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/Flow.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/Flow.tsx @@ -1,5 +1,6 @@ import { useGetV1GetSpecificGraph } from "@/app/api/__generated__/endpoints/graphs/graphs"; import { okData } from "@/app/api/helpers"; +import { ErrorBoundary } from "@/components/molecules/ErrorBoundary/ErrorBoundary"; import { FloatingReviewsPanel } from "@/components/organisms/FloatingReviewsPanel/FloatingReviewsPanel"; import { BuilderChatPanel } from "../../BuilderChatPanel/BuilderChatPanel"; import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag"; @@ -139,10 +140,12 @@ export const Flow = () => { graphId={flowID || undefined} /> {isBuilderChatEnabled && ( - void refetchGraph()} - /> + + void refetchGraph()} + /> + )} );