diff --git a/apps/memos-local-plugin/server/http.ts b/apps/memos-local-plugin/server/http.ts index 44159961a..8d63e45c3 100644 --- a/apps/memos-local-plugin/server/http.ts +++ b/apps/memos-local-plugin/server/http.ts @@ -135,7 +135,7 @@ async function dispatch( let pathname = url.pathname; const selfAgent = options.agent ?? null; - const AGENT_NAMES = ["openclaw", "hermes"] as const; + const AGENT_NAMES = ["openclaw", "hermes", "memos"] as const; // ── Multi-agent path routing ──────────────────────────────────────── // The first agent to bind the port acts as the hub. Subsequent diff --git a/apps/memos-local-plugin/web/src/api/client.ts b/apps/memos-local-plugin/web/src/api/client.ts index cf9e32066..3934e524e 100644 --- a/apps/memos-local-plugin/web/src/api/client.ts +++ b/apps/memos-local-plugin/web/src/api/client.ts @@ -26,7 +26,7 @@ export const AGENT_PREFIX: string = detectAgentPrefix(); function detectAgentPrefix(): string { if (typeof location === "undefined") return ""; const seg = location.pathname.split("/").filter(Boolean)[0]; - return seg === "openclaw" || seg === "hermes" ? `/${seg}` : ""; + return seg === "openclaw" || seg === "hermes" || seg === "memos" ? `/${seg}` : ""; } /**