Skip to content

Commit a02ef18

Browse files
authored
Put back gateway auth check (agentclientprotocol#380)
1 parent 3beddee commit a02ef18

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/acp-agent.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,13 @@ export class ClaudeAcpAgent implements Agent {
13271327
throw error;
13281328
}
13291329

1330+
if (shouldHideClaudeAuth() && initializationResult.account.subscriptionType) {
1331+
throw RequestError.authRequired(
1332+
undefined,
1333+
"This integration does not support using claude.ai subscriptions.",
1334+
);
1335+
}
1336+
13301337
const models = await getAvailableModels(q, initializationResult.models, settingsManager);
13311338

13321339
const availableModes = [

0 commit comments

Comments
 (0)