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): restore seed message + fix prototype pollution + clear session cache in tests
Zamil Majdyfce353fb21f6
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/__tests__/BuilderChatPanel.test.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/__tests__/BuilderChatPanel.test.tsxindex 3d2ef9dd1a..3c7a4c1cbc 100644--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/__tests__/BuilderChatPanel.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/__tests__/BuilderChatPanel.test.tsx@@ -344,7 +344,10 @@ describe("BuilderChatPanel", () => {it("passes onGraphEdited to useBuilderChatPanel", () => {const onGraphEdited = vi.fn();render(<BuilderChatPanel onGraphEdited={onGraphEdited} />);- expect(mockUseBuilderChatPanel).toHaveBeenCalledWith({ onGraphEdited });+ expect(mockUseBuilderChatPanel).toHaveBeenCalledWith({+ isGraphLoaded: undefined,+ onGraphEdited,+ });});});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 af34cd2d2b..ef1be41dfe 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@@ -6,8 +6,6 @@ import { useChat } from "@ai-sdk/react";import { DefaultChatTransport } from "ai";import { MarkerType } from "@xyflow/react";import {- type Dispatch,- type SetStateAction,type KeyboardEvent,useEffect,useMemo,@@ -17,8 +15,6 @@ import {import { parseAsString, useQueryStates } from "nuqs";import { useShallow } from "zustand/react/shallow";import { useEdgeStore } from "../../stores/edgeStore";-import type { CustomEdge } from "../FlowEditor/edges/CustomEdge";-import type { CustomNode } from "../FlowEditor/nodes/CustomNode/CustomNode";import { useNodeStore } from "../../stores/nodeStore";import {GraphAction,