microsoft/vscode · error · CopilotCLIQuotaExceededError

You've exhausted your credits. To continue working, please c

Error message

You've exhausted your credits. To continue working, please contact your organization's Copilot admin or wait for your allowance to renew.

What it means

Error "You've exhausted your credits. To continue working, please contact 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/a6a17ce4b45c0c40. Report an issue: GitHub.