@@ -2,7 +2,7 @@ import React, { useCallback, useEffect } from 'react';
22import { ShareButton } from '@/standalone/share' ;
33import { AboutModal } from './AboutModal' ;
44import { motion } from 'framer-motion' ;
5- import { FiMoon , FiSun , FiInfo } from 'react-icons/fi' ;
5+ import { FiMoon , FiSun , FiInfo , FiCpu } from 'react-icons/fi' ;
66import { GoSidebarCollapse , GoSidebarExpand } from 'react-icons/go' ;
77import { useLayout } from '@/common/hooks/useLayout' ;
88import { useSession } from '@/common/hooks/useSession' ;
@@ -12,7 +12,7 @@ import './Navbar.css';
1212
1313export const Navbar : React . FC = ( ) => {
1414 const { isSidebarCollapsed, toggleSidebar } = useLayout ( ) ;
15- const { activeSessionId, isProcessing, modelInfo } = useSession ( ) ;
15+ const { activeSessionId, isProcessing, modelInfo, agentInfo } = useSession ( ) ;
1616 const { isReplayMode } = useReplayMode ( ) ;
1717 const [ isDarkMode , setIsDarkMode ] = React . useState ( true ) ;
1818 const [ showAboutModal , setShowAboutModal ] = React . useState ( false ) ;
@@ -93,8 +93,19 @@ export const Navbar: React.FC = () => {
9393 </ div >
9494 ) }
9595
96- { /* Center section - now empty, model info moved to About modal */ }
97- < div className = "flex-1" />
96+ { /* Center section - Smaller Agent name badge */ }
97+ < div className = "flex-1 flex justify-center" >
98+ { agentInfo . name && (
99+ < div className = "agent-name-badge" >
100+ < div className = "flex items-center gap-1.5 px-2 py-1 bg-gradient-to-r from-blue-500/10 to-purple-500/10 dark:from-blue-400/15 dark:to-purple-400/15 border border-blue-200/30 dark:border-blue-400/20 rounded-full shadow-sm backdrop-blur-sm" >
101+ < FiCpu size = { 12 } className = "text-blue-600 dark:text-blue-400 flex-shrink-0" />
102+ < span className = "text-xs font-medium text-blue-800 dark:text-blue-200 truncate max-w-[150px]" >
103+ { agentInfo . name }
104+ </ span >
105+ </ div >
106+ </ div >
107+ ) }
108+ </ div >
98109
99110 { /* Right section - reordered buttons: About, Dark mode, Share */ }
100111 < div className = "flex items-center space-x-1 md:space-x-2" >
@@ -125,11 +136,12 @@ export const Navbar: React.FC = () => {
125136 </ div >
126137 </ div >
127138
128- { /* About Modal - pass modelInfo */ }
139+ { /* About Modal - pass modelInfo and agentInfo */ }
129140 < AboutModal
130141 isOpen = { showAboutModal }
131142 onClose = { ( ) => setShowAboutModal ( false ) }
132143 modelInfo = { modelInfo }
144+ agentInfo = { agentInfo }
133145 />
134146 </ >
135147 ) ;
0 commit comments