Skip to content

The agent that grows with you

fix(desktop): consecutive manage_connections calls share one card for everyone (#127872)

Siddharth Balyan5eb1381f3965
diff --git a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx b/apps/desktop/src/components/assistant-ui/tool/fallback.tsx
index 988c4a6555d..daecfc810d1 100644
--- a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx
+++ b/apps/desktop/src/components/assistant-ui/tool/fallback.tsx
@@ -44,7 +44,6 @@ import { useI18n } from '@/i18n'
import { connectorCalls, mcpTargets } from '@/lib/connector-tools'
import { PrettyLink, LinkifiedText as SharedLinkifiedText, urlSlugTitleLabel } from '@/lib/external-link'
import { AlertCircle, CheckCircle2 } from '@/lib/icons'
-import { isOnboardingEnabled } from '@/lib/onboarding-enabled'
import { toolResultRecord } from '@/lib/tool-result-metadata'
import { useEnterAnimation } from '@/lib/use-enter-animation'
import { cn } from '@/lib/utils'
@@ -1055,8 +1054,7 @@ export const ToolGroupSlot: FC<PropsWithChildren<{ endIndex: number; startIndex:
.slice(Math.max(0, startIndex), endIndex + 1)
.map(part =>
part.type === 'tool-call'
- ? (isOnboardingEnabled() && connectorCalls(part.toolName, part.args).length) ||
- mcpTargets(part.toolName, part.args).length
+ ? connectorCalls(part.toolName, part.args).length || mcpTargets(part.toolName, part.args).length
? CONNECTION_CARD_KEY
: part.toolName
: ''