The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(web): gateway strip's new labels are optional locale keys with an en fallback
teknium1f96258d4818b
diff --git a/web/src/components/SidebarStatusStrip.tsx b/web/src/components/SidebarStatusStrip.tsxindex 1390d1e526d..86b95b908c0 100644--- a/web/src/components/SidebarStatusStrip.tsx+++ b/web/src/components/SidebarStatusStrip.tsx@@ -2,6 +2,7 @@ import { Link } from "react-router";import type { StatusResponse } from "@/lib/api";import { cn } from "@/lib/utils";import { useI18n } from "@/i18n";+import { en } from "@/i18n/en";/** Gateway + session summary for the System sidebar block (no separate strip chrome). */export function SidebarStatusStrip({ status }: SidebarStatusStripProps) {@@ -60,7 +61,7 @@ export function gatewayLine(// Live: some channels offline. Retained on a dead PID: a watchdog hard-exited a wedged// process (gateway_exit_reason names it) — same verdict `hermes gateway status` prints.degraded: {- label: g.degraded,+ label: g.degraded ?? en.app.gatewayStrip.degraded!,tone: status.gateway_running ? "text-warning" : "text-destructive",},stopped: { label: g.stopped, tone: "text-muted-foreground" },@@ -68,7 +69,7 @@ export function gatewayLine(// Alive but housekeeping stopped stamping the heartbeat: 'Running' would be the lie the// reporter saw (loop/housekeeping wedged while gateway_state.json still said running).if (status.gateway_heartbeat_stale_s != null) {- return { label: g.heartbeatStale, tone: "text-destructive" };+ return { label: g.heartbeatStale ?? en.app.gatewayStrip.heartbeatStale!, tone: "text-destructive" };}if (status.gateway_state && byState[status.gateway_state]) {return byState[status.gateway_state];diff --git a/web/src/i18n/types.ts b/web/src/i18n/types.tsindex 517c8a0c2df..0346d7a8859 100644--- a/web/src/i18n/types.ts+++ b/web/src/i18n/types.ts@@ -84,9 +84,9 @@ export interface Translations {activeSessionsLabel: string;gatewayStatusLabel: string;gatewayStrip: {- degraded: string;+ degraded?: string;failed: string;- heartbeatStale: string;+ heartbeatStale?: string;off: string;running: string;starting: string;