mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-27 06:05:54 +08:00
12 lines
322 B
TypeScript
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';
|
|
}
|