Skip to content

Commit 64d5bdd

Browse files
committed
fix: failing tests
1 parent e2fe63d commit 64d5bdd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

webview-ui/src/components/SessionList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ export const SessionList: React.FC<SessionListProps> = ({
7676
displayName = "New Chat"; // Consistent name for unsaved chats
7777
} else if (session.metadata.description && session.metadata.description.trim()) {
7878
displayName = session.metadata.description.trim();
79-
} else {
80-
// Fallback for saved sessions without a description
81-
displayName = `Session ${session.id.substring(0, 6)}...`;
82-
}
79+
} else {
80+
// Fallback for saved sessions without a description
81+
displayName = "Untitled Session"; // Use "Untitled Session" as fallback
82+
}
8383

8484
// Format the date/time string
8585
const dateTimeString = new Date(session.metadata.updated || session.metadata.created || Date.now()).toLocaleString();

0 commit comments

Comments
 (0)