chore: drop GitHub issue URLs from pre-handshake guard log messages (#625)

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.
This commit is contained in:
Olivier Chafik 2026-04-21 13:50:10 +01:00 • committed by GitHub
commit 9a75b891b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -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);

View file

@ -355,8 +355,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);
}