microsoft/vscode · error · CopilotCLIQuotaExceededError

You've reached your credit limit. To continue working, pleas

Error message

You've reached your credit limit. To continue working, please contact your organization's Copilot admin or wait for your credits to reset.

What it means

Error "You've reached your credit limit. To continue working, please contact your organization's Copilot admin or wait for your credits to reset." 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/d5610b3b108f5d28. Report an issue: GitHub.