Files
claudecodeui/src/components/shell/utils/auth.ts
2026-06-26 15:51:10 +03:00

12 lines
322 B
TypeScript

import type { ProjectSession } from '../../../types/app';
export function getSessionDisplayName(session: ProjectSession | null | undefined): string | null {
if (!session) {
return null;
}
return session.__provider === 'cursor'
? session.name || 'Untitled Session'
: session.summary || 'New Session';
}