fix: tighten isClientRejection heuristic

Narrow 'client_id' match to 'client_id mismatch' to avoid
false-positive cleanup on unrelated errors that happen to
mention client_id.
This commit is contained in:
Danny Avila 2026-04-03 17:47:33 -04:00
parent ed7eaa5a2a
commit e188ff992b

View file

@ -507,7 +507,7 @@ export class MCPConnectionFactory {
return (
msg.includes('invalid_client') ||
msg.includes('unauthorized_client') ||
msg.includes('client_id') ||
msg.includes('client_id mismatch') ||
msg.includes('client not found') ||
msg.includes('unknown client')
);