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