updates on the agent ui and all those things

This commit is contained in:
2026-09-25 11:19:13 +05:30
parent 9c50de1142
commit beff5a1cbe
2 changed files with 101 additions and 12 deletions

View File

@@ -271,6 +271,8 @@ export default function AdminLayout() {
const displayName = user?.displayname || user?.authname || user?.name || 'Operator';
const isHome = location.pathname === '/doormile/home' || location.pathname === '/doormile' || location.pathname === '/';
const isAgentsPage = location.pathname === '/doormile/agents' || location.pathname.startsWith('/doormile/agents');
const hideAssistant = isHome || isAgentsPage;
return (
/* Transparent so the ambient canvas painted behind the app reads through.
@@ -519,7 +521,7 @@ export default function AdminLayout() {
page runs the assistant as the page itself, so neither the docked
panel nor its launcher belongs there. Splitting these two rules apart
is how you end up with a button that opens nothing. */}
{!isHome && (
{!hideAssistant && (
<>
<AILauncher isOpen={assistantOpen} onToggle={() => toggleAssistant((open) => !open)} />
<AIPanel isOpen={assistantOpen} onClose={() => toggleAssistant(false)} />