You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs/resource-tabs.tsx
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,15 @@ export function ResourceTabs({
185
185
constdragStartIdx=useRef<number|null>(null)
186
186
constautoScrollRaf=useRef<number|null>(null)
187
187
constanchorIdRef=useRef<string|null>(null)
188
+
constprevChatIdRef=useRef(chatId)
189
+
190
+
// Reset selection when switching chats — component instance persists across
191
+
// chat switches so stale IDs would otherwise carry over.
0 commit comments