The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(web): rename memory-pressure interface to avoid declaration merge with existing MemoryStatus
Shannon Sands1745cf3b4022
diff --git a/web/src/components/MemoryPressureBanner.test.tsx b/web/src/components/MemoryPressureBanner.test.tsxindex 3baa30b564c..e92905c85aa 100644--- a/web/src/components/MemoryPressureBanner.test.tsx+++ b/web/src/components/MemoryPressureBanner.test.tsx@@ -9,7 +9,7 @@ import type { ReactNode } from "react";import { I18nProvider } from "@/i18n";import { MemoryPressureBanner } from "./MemoryPressureBanner";-import type { StatusResponse, MemoryStatus } from "@/lib/api";+import type { StatusResponse, MemoryPressureStatus } from "@/lib/api";let container: HTMLDivElement;let root: Root;@@ -34,7 +34,7 @@ afterEach(async () => {container?.remove();});-function statusWith(memory: MemoryStatus | undefined): StatusResponse {+function statusWith(memory: MemoryPressureStatus | undefined): StatusResponse {return { memory } as StatusResponse;}diff --git a/web/src/lib/api.ts b/web/src/lib/api.tsindex 79f7dbc9913..c5b7eb4d0e3 100644--- a/web/src/lib/api.ts+++ b/web/src/lib/api.ts@@ -1884,13 +1884,13 @@ export interface StatusResponse {latest_config_version: number;/** NS-656: memory-pressure rollup from the gateway heartbeat +* lifecycle ledger. Absent on older gateways. */- memory?: MemoryStatus;+ memory?: MemoryPressureStatus;release_date: string;version: string;}/** NS-656: coarse memory telemetry served by /api/status. */-export interface MemoryStatus {+export interface MemoryPressureStatus {pressure: "ok" | "elevated" | "critical" | "unknown";gateway_rss_mb?: number | null;system_total_mb?: number | null;