Gemini CLI PR turns cryptic 403 CONSUMER_INVALID errors into actionable project hints
ValeriaWong · ghdev · 2026-11-28
PR #30509 for google-gemini/gemini-cli fixes the confusing 403 PERMISSIONDENIED (CONSUMERINVALID) returned when billing hits a missing or invalid Google Cloud project, which users often misread as an auth or quota failure.
- The fix centralizes the hint in parseAndFormatApiError, covering JSON API errors and StructuredErrors.
- If GOOGLECLOUDPROJECT/GOOGLECLOUDPROJECTID is unset, users are told to set a string-based project ID; if set, they're asked to verify it's not the numeric project number.
- Free-tier users get a re-auth hint instead, since they use a managed project.
- The PR deliberately avoids forcing the env var at login — a prior approach (#22022) was rejected for breaking free-tier users — and adds 5 tests covering each branch.
More from coding & agent
- uisdk called the second 'wow' after shadcn as agent builds full table UI autonomously — shadcn · 2026-11-29
- NousResearch's Hermes adds live/cold prompt-cache indicator to avoid surprise re-billing — Teknium · 2026-11-29
- Travel MCP server serves cash fares, 2.8M hotels, award seats across 40+ programs — Alarmed-Elevator-383 · 2026-11-29
- Full AI song pipeline: YuE2 + OpenCode generates and audits a complete 250s track — Robonotes1760 · 2026-11-29
- One prompt makes a 30s Brutalist architecture short film — Neon even scored its own ambient music — dreamwieber · 2026-11-29
- SAFi: an open-source 'domain controller' for centrally governing AI agents — forevergeeks · 2026-11-29