diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx index 05c642bacf..75bfbc3743 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx @@ -268,8 +268,15 @@ function shouldShowRunSkipButtons(toolCall: CopilotToolCall): boolean { } // Also show buttons for integration tools in pending state (they need user confirmation) + // But NOT if the tool is auto-allowed (it will auto-execute) const mode = useCopilotStore.getState().mode - if (mode === 'build' && isIntegrationTool(toolCall.name) && toolCall.state === 'pending') { + const isAutoAllowed = useCopilotStore.getState().isToolAutoAllowed(toolCall.name) + if ( + mode === 'build' && + isIntegrationTool(toolCall.name) && + toolCall.state === 'pending' && + !isAutoAllowed + ) { return true }