From fd508a34f88da0a293e14a21516f7330b2792891 Mon Sep 17 00:00:00 2001 From: Clawdbot Date: Wed, 28 Jan 2026 17:27:57 +0100 Subject: [PATCH] fix: avoid duplicate label when displayName equals label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For main/cron sessions, displayName falls back to label, causing 'Label — Label' duplication. Now only shows label suffix when it differs from displayName. --- ui/src/ui/app-render.helpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/ui/app-render.helpers.ts b/ui/src/ui/app-render.helpers.ts index 50a1b300e..d2b2d3e5e 100644 --- a/ui/src/ui/app-render.helpers.ts +++ b/ui/src/ui/app-render.helpers.ts @@ -88,7 +88,9 @@ export function renderChatControls(state: AppViewState) { (entry) => entry.key, (entry) => { const base = entry.displayName ?? entry.key; - const text = entry.label ? `${base} — ${entry.label}` : base; + // Only append label if it differs from displayName + const showLabel = entry.label && entry.label !== entry.displayName; + const text = showLabel ? `${base} — ${entry.label}` : base; return html``; }, )}