feat(agent): update agent connection behavior to start with a blank conversation and allow user-initiated session restoration

This commit is contained in:
HouYunFei
2026-07-29 14:16:35 +08:00
parent 0526290c8f
commit eda3481533
16 changed files with 2016 additions and 1910 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { Bot, PanelRightClose } from "lucide-react";
import { Button, Switch, Tooltip } from "antd";
import { motion } from "motion/react";
import { CanvasLocalAgentPanel } from "@/components/canvas/canvas-local-agent-panel";
import { LocalAgentPanel } from "./local-agent-panel";
import { canvasThemes } from "@/lib/canvas-theme";
import { CANVAS_AGENT_PANEL_MOTION_MS, useAgentStore } from "@/stores/use-agent-store";
import { useThemeStore } from "@/stores/use-theme-store";
@@ -80,7 +80,7 @@ export function AgentPanel() {
</Tooltip>
</div>
</header>
<CanvasLocalAgentPanel embedded />
<LocalAgentPanel embedded />
</motion.aside>
</motion.div>
);