The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): gateway restart no longer clickable-by-mistake next to reconnect
Tekniumb2ea0f3810ba
diff --git a/apps/desktop/src/app/shell/gateway-menu-panel.tsx b/apps/desktop/src/app/shell/gateway-menu-panel.tsxindex 8e1516b7bd5..ff61fe6c267 100644--- a/apps/desktop/src/app/shell/gateway-menu-panel.tsx+++ b/apps/desktop/src/app/shell/gateway-menu-panel.tsx@@ -6,7 +6,7 @@ import { LogView } from '@/components/ui/log-view'import { Tip } from '@/components/ui/tooltip'import { getLogs } from '@/hermes'import { useI18n } from '@/i18n'-import { LayoutDashboard, RefreshCw } from '@/lib/icons'+import { LayoutDashboard, Power, RefreshCw } from '@/lib/icons'import type { RuntimeReadinessResult } from '@/lib/runtime-readiness'import { cn } from '@/lib/utils'import { reconnectGateway } from '@/store/gateway-reconnect'@@ -185,26 +185,30 @@ export function GatewayMenuPanel({</Button></Tip>)}- <Tip label={t.commandCenter.restartGateway}>+ <Tip label={copy.openSystem}><Button- aria-label={t.commandCenter.restartGateway}+ aria-label={copy.openSystem}className="text-muted-foreground hover:text-foreground"- onClick={restart}+ onClick={openSystem}size="icon-xs"variant="ghost">- <RefreshCw />+ <LayoutDashboard /></Button></Tip>- <Tip label={copy.openSystem}>+ {/* Restart is the heavy, disruptive action: keep it visually distinct+ (power icon, destructive hover) and separated from the benign+ reconnect/system buttons so it can't be hit by mistake. */}+ <span aria-hidden className="mx-1 h-4 w-px bg-border/70" />+ <Tip label={t.commandCenter.restartGateway}><Button- aria-label={copy.openSystem}- className="text-muted-foreground hover:text-foreground"- onClick={openSystem}+ aria-label={t.commandCenter.restartGateway}+ className="text-muted-foreground hover:text-destructive"+ onClick={restart}size="icon-xs"variant="ghost">- <LayoutDashboard />+ <Power /></Button></Tip></div>diff --git a/apps/desktop/src/lib/icons.ts b/apps/desktop/src/lib/icons.tsindex 943dd1870a1..54cac8d1855 100644--- a/apps/desktop/src/lib/icons.ts+++ b/apps/desktop/src/lib/icons.ts@@ -94,6 +94,7 @@ import {IconPin as Pin,IconPlayerPlay as Play,IconPlus as Plus,+ IconPower as Power,IconRefresh as RefreshCw,IconRefresh as RefreshCwIcon,IconDeviceFloppy as Save,@@ -222,6 +223,7 @@ export {Pin,Play,Plus,+ Power,RefreshCw,RefreshCwIcon,Save,