From 36f85eb224e611b7bb339e9bd09a372455e595a6 Mon Sep 17 00:00:00 2001 From: gongzhiyong Date: Wed, 15 Apr 2026 01:33:18 +0800 Subject: [PATCH] Revert "feat(ui): remove tool selection chips from below input area" This reverts commit 059ec40845911d0e64341b8d427aa3357e93b8be. --- langgraph/src/main.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/langgraph/src/main.tsx b/langgraph/src/main.tsx index e675df2..4c8e882 100644 --- a/langgraph/src/main.tsx +++ b/langgraph/src/main.tsx @@ -19,6 +19,7 @@ import { useConversation } from "@/hooks/useConversation"; import { useConfig } from "@/hooks/useConfig"; import { ChatMessages } from "@/components/ChatMessages"; import { ChatInput } from "@/components/ChatInput"; +import { ConfigPanel } from "@/components/ConfigPanel"; const LANGGRAPH_URL = import.meta.env.VITE_LANGGRAPH_URL ?? "http://localhost:2024"; @@ -33,7 +34,7 @@ function App() { const [showScrollBtn, setShowScrollBtn] = useState(false); const isComposingRef = useRef(false); - const { activeTools, modelMode } = useConfig(); + const { activeTools, setActiveTools, modelMode, setModelMode, toggleTool } = useConfig(); const { threads, setThreads, @@ -54,6 +55,8 @@ function App() { // Source label from card action buttons const [sourceLabel, setSourceLabel] = useState(null); + const configPanelRef = useRef(null); + // Pending retry tool name const pendingRetryToolRef = useRef(null); @@ -403,6 +406,17 @@ function App() { resetLoading={resetLoading} /> + {/* Config panel */} + + {/* Stream status bar */} {concurrentStatus !== "idle" && (