From 2262564680eedd1917c82cc36f1ddcc94e9ff0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Sun, 3 May 2026 01:28:36 +0100 Subject: [PATCH] chore(api): rename diagnostic to a unique path to defeat any stale routing cache --- apps/cli/src/services/api/with-rest-key.ts | 1 + packages/api/src/modules/mesh/v1-router.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/cli/src/services/api/with-rest-key.ts b/apps/cli/src/services/api/with-rest-key.ts index f30cedd..f94ea1a 100644 --- a/apps/cli/src/services/api/with-rest-key.ts +++ b/apps/cli/src/services/api/with-rest-key.ts @@ -48,6 +48,7 @@ export async function withRestKey( if (process.env.CLAUDEMESH_DEBUG_PROBE) { const probeUrls = [ "https://claudemesh.com/api/v1/me/workspace", + "https://claudemesh.com/api/v1/me/ping", "https://claudemesh.com/api/v1/me/topics", ]; for (const u of probeUrls) { diff --git a/packages/api/src/modules/mesh/v1-router.ts b/packages/api/src/modules/mesh/v1-router.ts index ced14cf..3656ea1 100644 --- a/packages/api/src/modules/mesh/v1-router.ts +++ b/packages/api/src/modules/mesh/v1-router.ts @@ -496,11 +496,11 @@ export const v1Router = new Hono() }); }) - // GET /v1/me/ping — sanity probe for cross-mesh route health. - .get("/me/ping", async (c) => { + // GET /v1/diagnostics-fresh-2026-05-03 — fresh path probe. + .get("/diagnostics-fresh-2026-05-03", async (c) => { const key = c.var.apiKey; requireCapability(key, "read"); - return c.json({ ok: true, hasIssuer: !!key.issuedByMemberId }); + return c.json({ ok: true, ts: Date.now() }); }) // GET /v1/me/topics — cross-mesh topic list for the caller's user.