From e5b2e9be64fa363590dcc1cfbc2017d66ea30a9e Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 31 May 2026 15:13:13 -0700 Subject: [PATCH] Move "Confirm tool calls" to the Tools section --- .../src/features/chat/chat-settings-sheet.tsx | 43 +++++++++++-------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsx index 8eda82fb02..4f19e95a88 100644 --- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx +++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx @@ -1338,6 +1338,7 @@ export function ChatSettingsPanel({
+
@@ -1512,13 +1513,35 @@ function AutoHealToolCallsToggle() { ); } +function ConfirmToolCallsToggle() { + const confirmToolCalls = useChatRuntimeStore((s) => s.confirmToolCalls); + const setConfirmToolCalls = useChatRuntimeStore((s) => s.setConfirmToolCalls); + + return ( +
+
+ + Confirm tool calls + + + When on, every tool call pauses for your approval in the chat before + it runs. + +
+ +
+ ); +} + function McpServersSection() { const mcpEnabledForChat = useChatRuntimeStore((s) => s.mcpEnabledForChat); const setMcpEnabledForChat = useChatRuntimeStore( (s) => s.setMcpEnabledForChat, ); - const confirmToolCalls = useChatRuntimeStore((s) => s.confirmToolCalls); - const setConfirmToolCalls = useChatRuntimeStore((s) => s.setConfirmToolCalls); const [enabledServerCount, setEnabledServerCount] = useState( null, ); @@ -1559,22 +1582,6 @@ function McpServersSection() { disabled={enabledServerCount === 0 && !mcpEnabledForChat} /> -
-
- - Confirm tool calls - - - When on, every tool call pauses for your approval in the chat - before it runs. - -
- -
{enabledServerCount === null