feat: display agent name badge in header next to session label

Shows the agentId (e.g. 'main') with a bot icon in the header subtitle,
making it clear which agent is handling the current conversation.
Useful for multi-agent setups.
This commit is contained in:
Nicolas Varrot
2026-02-12 17:45:38 +00:00
parent 7faab405db
commit 17ff52aaaf
2 changed files with 14 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { Menu, Sparkles, LogOut, Volume2, VolumeOff, Cpu } from 'lucide-react';
import { Menu, Sparkles, LogOut, Volume2, VolumeOff, Cpu, Bot } from 'lucide-react';
import type { ConnectionStatus, Session } from '../types';
import { useT } from '../hooks/useLocale';
import { LanguageSelector } from './LanguageSelector';
@@ -31,7 +31,16 @@ export function Header({ status, sessionKey, onToggleSidebar, activeSessionData,
<span className="font-semibold text-zinc-300 text-sm tracking-wide">{t('header.title')}</span>
<Sparkles className="h-3.5 w-3.5 text-cyan-300/60" />
</div>
<span className="text-xs text-zinc-500 truncate">{sessionLabel}</span>
<span className="text-xs text-zinc-500 truncate flex items-center gap-1.5">
{activeSessionData?.agentId && (
<span className="inline-flex items-center gap-0.5 text-cyan-400/70 font-medium">
<Bot className="h-3 w-3" />
{activeSessionData.agentId}
<span className="text-zinc-600 mx-0.5">·</span>
</span>
)}
{sessionLabel}
</span>
</div>
</div>
<div className="flex items-center gap-2 text-sm">