Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion frontend/apps/web/app/chat/components/EmptyState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ export function EmptyState({ onPrompt }: { onPrompt?: PromptHandler }) {
const name = useMemo(() => {
const preferred = (callMeName || displayNameSetting).trim();
if (preferred) return preferred;
return principal ? displayName(principal.userId) : 'there';
if (!principal) return 'there';
// Fall back to the account identity. Prefer the email (every device has
// it) over the raw userId, which is an opaque hash and renders as e.g.
// "6b72871a" - never use it for a human-facing greeting.
return displayName(principal.email || principal.userId);
}, [callMeName, displayNameSetting, principal]);
const part = timeOfDay();

Expand Down
Loading