Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): correct account panel to show saved email after update

Steven Enamakel70b71e14f13f
diff --git a/app/src/components/settings/panels/AccountPanel.tsx b/app/src/components/settings/panels/AccountPanel.tsx
index 3a0d39b97c..efd021613a 100644
--- a/app/src/components/settings/panels/AccountPanel.tsx
+++ b/app/src/components/settings/panels/AccountPanel.tsx
@@ -30,19 +30,19 @@ const AccountPanel = () => {
const { currentPlan } = useUsageState();
const name = user ? [user.firstName, user.lastName].filter(Boolean).join(' ') || null : null;
- const username = user?.username ? `@${user.username}` : null;
const tier: PlanTier | null = currentPlan?.plan ?? user?.subscription?.plan ?? null;
return (
<SettingsPanel
testId="account-panel"
description={t('pages.settings.accountSection.description')}>
- {user && (name || username) && (
+ {/* The username on the user record is the linked Telegram handle, not
+ an account identity, so the profile card shows the name only. */}
+ {user && name && (
<Card padded data-testid="account-profile">
<div className="flex items-center gap-4">
<div className="min-w-0 flex-1">
{name && <div className="truncate text-base font-semibold text-content">{name}</div>}
- {username && <div className="truncate text-sm text-content-muted">{username}</div>}
</div>
{tier && (
<Badge variant={tier === 'FREE' ? 'neutral' : 'primary'} data-testid="account-plan">