mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-24 06:18:04 -05:00
Colean up
This commit is contained in:
@@ -80,7 +80,6 @@ const CopilotMessage: FC<CopilotMessageProps> = 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] || [] : []
|
||||
|
||||
@@ -2737,8 +2737,6 @@ export const useCopilotStore = create<CopilotStore>()(
|
||||
}))
|
||||
}
|
||||
|
||||
// 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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user