Skip to content

The agent that grows with you

fix(desktop): condensed profile dropdown prewarm also requires pointer movement

kshitijk4poor97a82ee5b5d2
diff --git a/apps/desktop/src/app/chat/sidebar/profile-dropdown-switcher.tsx b/apps/desktop/src/app/chat/sidebar/profile-dropdown-switcher.tsx
index 85caf0063f3..854b7a393ee 100644
--- a/apps/desktop/src/app/chat/sidebar/profile-dropdown-switcher.tsx
+++ b/apps/desktop/src/app/chat/sidebar/profile-dropdown-switcher.tsx
@@ -262,10 +262,16 @@ function ProfileItem({
label: string
name: string
}) {
- const { cancelPrewarm, startPrewarm } = useProfilePrewarm(name)
+ const { cancelPrewarm, notePointerMove, startPrewarm } = useProfilePrewarm(name)
return (
- <DropdownMenuRadioItem className="min-w-0" onPointerEnter={startPrewarm} onPointerLeave={cancelPrewarm} value={name}>
+ <DropdownMenuRadioItem
+ className="min-w-0"
+ onPointerEnter={startPrewarm}
+ onPointerLeave={cancelPrewarm}
+ onPointerMove={notePointerMove}
+ value={name}
+ >
<span className="flex min-w-0 items-center gap-1.5">
<ProfileGlyph aria-hidden="true" color={color} isDefault={isDefault} name={name} />
<span className="truncate">{label}</span>