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:
parent
4995746759
commit
9a75b891b2
2 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue