From 58ef2def008a51cea4ffb0e63e2fe8e98201ac1c Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Fri, 23 Jan 2026 19:26:05 -0800 Subject: [PATCH] Colean up --- .../copilot/components/copilot-message/copilot-message.tsx | 1 - apps/sim/stores/panel/copilot/store.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/copilot-message.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/copilot-message.tsx index bdcee7590..1e745f3f2 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/copilot-message.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/copilot-message.tsx @@ -80,7 +80,6 @@ const CopilotMessage: FC = memo( isAborting, } = useCopilotStore() - // Use stable selector to avoid re-renders when unrelated state changes const maskCredentialValue = useCopilotStore((s) => s.maskCredentialValue) const messageCheckpoints = isUser ? allMessageCheckpoints[message.id] || [] : [] diff --git a/apps/sim/stores/panel/copilot/store.ts b/apps/sim/stores/panel/copilot/store.ts index c9464b4c1..ca8acc644 100644 --- a/apps/sim/stores/panel/copilot/store.ts +++ b/apps/sim/stores/panel/copilot/store.ts @@ -2737,8 +2737,6 @@ export const useCopilotStore = create()( })) } - // Load sensitive credential IDs and auto-allowed tools in background (non-blocking) - // These will be ready before any tool calls arrive since SSE setup takes time get().loadSensitiveCredentialIds().catch((err) => { logger.warn('[Copilot] Failed to load sensitive credential IDs', err) })