microsoft/vscode · error · CopilotCLIQuotaExceededError
You've exhausted your premium model quota. For additional pa
Error message
You've exhausted your premium model quota. For additional paid premium requests, please reach out to your organization's Copilot admin or wait for your allowance to renew.
What it means
Error "You've exhausted your premium model quota. For additional paid premium requests, please reach out to your organization's Copilot admin or wait for your allowance to renew." thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSession.ts:1702
event.data.error?.message,
);
})));
if (!token.isCancellationRequested) {
await this.sendRequestInternal(input, attachments, false, logStartTime);
}
if (isQuotaError) {
this._chatQuotaService.clearQuota();
let plan: string | undefined;
let isUsageBasedBilling: boolean | undefined;
let quotaResetDate: string | undefined;
try {
const copilotToken = await this._authenticationService.getCopilotToken();
plan = copilotToken.copilotPlan;
isUsageBasedBilling = copilotToken.tokenBasedBilling;
quotaResetDate = copilotToken.quotaInfo.quota_reset_date;
} catch { /* token unavailable */ }
throw new CopilotCLIQuotaExceededError(getQuotaMessageForPlan(plan, isUsageBasedBilling, quotaResetDate));
}
this.logService.trace(`[CopilotCLISession] Invoking session (completed) ${this.sessionId}`);
const resolvedToolIdEditMap: Record<string, string> = {};
await Promise.all(Array.from(toolIdEditMap.entries()).map(async ([toolId, editFilePromise]) => {
const editId = await editFilePromise.catch(() => undefined);
if (editId) {
resolvedToolIdEditMap[toolId] = editId;
}
}));
if (sdkRequestId) {
await this._chatSessionMetadataStore.updateRequestDetails(this.sessionId, [{
vscodeRequestId: request.id,
copilotRequestId: sdkRequestId,
toolIdEditMap: resolvedToolIdEditMap,
agentId: this._agentName,
}]).catch(error => {
this.logService.error(`[CopilotCLISession] Failed to update chat session metadata store for request ${request.id}`, error);
});View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSession.ts:1702 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/642ccc0a4db1f505.
Report an issue: GitHub.