From 619c0ebe3f726fa845b7e655e2e13fb26c8ceedc Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Tue, 21 Apr 2026 13:37:36 +0100 Subject: [PATCH] chore: drop GitHub issue URLs from pre-handshake guard log messages The runtime console.error/warn strings in App._assertInitialized and AppBridge.replaceRequestHandler linked to a tracking issue. Issue URLs in runtime logs are brittle and send developers to a discussion thread rather than actionable docs; the message itself already says what to do. JSDoc @see links retained. --- src/app-bridge.ts | 3 +-- src/app.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app-bridge.ts b/src/app-bridge.ts index 4c8be2e9..5186112c 100644 --- a/src/app-bridge.ts +++ b/src/app-bridge.ts @@ -336,8 +336,7 @@ export class AppBridge extends ProtocolWithEvents< `[ext-apps] AppBridge received '${request.method}' before ` + `ui/notifications/initialized. The View is calling host ` + `methods before completing the handshake; it should await ` + - `app.connect() first. See ` + - `https://github.com/anthropics/claude-ai-mcp/issues/149`, + `app.connect() first.`, ); } return handler(request, extra); diff --git a/src/app.ts b/src/app.ts index 473d345d..c1d4c014 100644 --- a/src/app.ts +++ b/src/app.ts @@ -280,8 +280,7 @@ export class App extends ProtocolWithEvents< const msg = `[ext-apps] App.${method}() called before connect() completed the ` + `ui/initialize handshake. Await app.connect() before calling this ` + - `method, or move data loading to an ontoolresult handler. ` + - `See https://github.com/anthropics/claude-ai-mcp/issues/149`; + `method, or move data loading to an ontoolresult handler.`; if (this.options?.strict) { throw new Error(msg); }