We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f12e4d5 commit 6f4bbe6Copy full SHA for 6f4bbe6
1 file changed
apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts
@@ -2624,16 +2624,7 @@ export function useChat(
2624
status: 'pending',
2625
updatedAt: new Date().toISOString(),
2626
}
2627
- const shouldApplyStartSession = shouldReplaceSession(prevSession, nextSession)
2628
applyPreviewSessionUpdate(nextSession)
2629
- if (
2630
- shouldApplyStartSession &&
2631
- nextSession.fileId &&
2632
- hasRenderableFilePreviewContent(nextSession) &&
2633
- shouldAutoActivatePreviewSession(nextSession)
2634
- ) {
2635
- setActiveResourceId(nextSession.fileId)
2636
- }
2637
break
2638
2639
0 commit comments