fix: suppress account assertion if gateway authentication is used (#436)

This commit is contained in:
Aleksandr Suhinin
2026-03-17 18:51:02 +02:00
committed by GitHub
parent c40d7bc30f
commit ff3b97aece

View File

@@ -1407,7 +1407,11 @@ export class ClaudeAcpAgent implements Agent {
throw error;
}
if (shouldHideClaudeAuth() && initializationResult.account.subscriptionType) {
if (
shouldHideClaudeAuth() &&
initializationResult.account.subscriptionType &&
this.gatewayAuthMeta === null
) {
throw RequestError.authRequired(
undefined,
"This integration does not support using claude.ai subscriptions.",