diff --git a/cc-haha/desktop/src/components/layout/Sidebar.tsx b/cc-haha/desktop/src/components/layout/Sidebar.tsx index 34837c1..64d51d7 100644 --- a/cc-haha/desktop/src/components/layout/Sidebar.tsx +++ b/cc-haha/desktop/src/components/layout/Sidebar.tsx @@ -36,6 +36,12 @@ export function Sidebar() { const closeTab = useTabStore((s) => s.closeTab) const disconnectSession = useChatStore((s) => s.disconnectSession) const logout = useHeicodeAuthStore((s) => s.logout) + // Logged-in user identity, surfaced as a card right above logout/settings so + // the user can always SEE who they're signed in as without clicking anywhere. + // Populated by /api/heicode-auth/status from the active provider's mcpAuth + // record (credentials login → set in handleLoginWithCredentials; OAuth login + // → set from query params by handleOAuthCallback after backend a2deeb6). + const authUser = useHeicodeAuthStore((s) => s.status?.user ?? null) const [searchQuery, setSearchQuery] = useState('') const [contextMenu, setContextMenu] = useState<{ id: string; x: number; y: number } | null>(null) const [pendingDeleteSessionId, setPendingDeleteSessionId] = useState(null) @@ -372,7 +378,8 @@ export function Sidebar() {