From 6e7d4a4b45096c99ab2b6c429b3e10ca79414089 Mon Sep 17 00:00:00 2001 From: Kevin Alwell Date: Wed, 30 Apr 2025 14:55:15 -0400 Subject: [PATCH] Should fix #751 by adding verbose error message. --- codex-cli/src/utils/agent/agent-loop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-cli/src/utils/agent/agent-loop.ts b/codex-cli/src/utils/agent/agent-loop.ts index 53da697981..20a12e7c68 100644 --- a/codex-cli/src/utils/agent/agent-loop.ts +++ b/codex-cli/src/utils/agent/agent-loop.ts @@ -1137,7 +1137,7 @@ export class AgentLoop { content: [ { type: "input_text", - text: "⚠️ Insufficient quota. Please check your billing details and retry.", + text: `\u26a0 Insufficient quota: ${err instanceof Error && err.message ? err.message.trim() : "No remaining quota."} Manage or purchase credits at https://platform.openai.com/account/billing.`, }, ], });