chore: generate

This commit is contained in:
opencode-agent[bot]
2026-03-10 02:02:18 +00:00
parent ff3bb7424d
commit 4f982ddb94
2 changed files with 9 additions and 6 deletions

View File

@@ -401,7 +401,8 @@ export namespace MCP {
// but may also throw plain Errors when auth() fails internally
// (e.g. during discovery, registration, or state generation).
// When an authProvider is attached, treat both cases as auth-related.
const isAuthError = error instanceof UnauthorizedError || (authProvider && lastError.message.includes("OAuth"))
const isAuthError =
error instanceof UnauthorizedError || (authProvider && lastError.message.includes("OAuth"))
if (isAuthError) {
log.info("mcp server requires authentication", { key, transport: name })