Title: bug: Coder Agents shows a Coder-budget message for provider billing and quota errors · Issue #32101 · coder/coder · GitHub
Open Graph Title: bug: Coder Agents shows a Coder-budget message for provider billing and quota errors · Issue #32101 · coder/coder
X Title: bug: Coder Agents shows a Coder-budget message for provider billing and quota errors · Issue #32101 · coder/coder
Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Coder Agents maps provider failures to generic error kinds, and the terminal message for some kinds points admins at the wrong cause. Example: an O...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Coder Agents maps provider failures to generic error kinds, and the terminal message for some kinds points ...
X Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Coder Agents maps provider failures to generic error kinds, and the terminal message for some kinds points ...
Opengraph URL: https://github.com/coder/coder/issues/32101
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Coder Agents shows a Coder-budget message for provider billing and quota errors","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### Current Behavior\n\nCoder Agents maps provider failures to generic error kinds, and the terminal message for some kinds points admins at the wrong cause.\n\nExample: an OpenAI \"You have no credits remaining\" error (a billing problem on the OpenAI account) is shown as:\n\n> The AI usage limit has been exceeded. Contact an administrator or check the applicable budget and quota settings.\n\nThat reads like a **Coder** budget or quota limit. In [`coderd/x/chatd/chaterror/message.go`](https://github.com/coder/coder/blob/main/coderd/x/chatd/chaterror/message.go), `ChatErrorKindUsageLimit` returns this fixed string and, unlike rate limit, auth, and config errors, doesn't name the provider. Since #25676, provider quota and billing errors (for example `insufficient_quota`) are classified as `usage_limit`, so they all get this message. Coder's own spend limits are reported with the same kind, so the two causes look identical in the UI.\n\nThe provider's original text is preserved in `ClassifiedError.Detail`, but the headline message is what admins act on.\n\n### Expected Behavior\n\n- Provider-side quota and billing errors name the provider and point to the provider account, for example: \"OpenAI reports that the account's usage quota or credits are exhausted. Check billing for the provider account.\"\n- Coder-side budget and usage limits keep a message that points to Coder's settings.\n- Ideally, the provider's detail text is shown alongside the message for these errors.\n\nIt may be worth auditing the other generic kinds for similar mismatches.\n\n### Steps to Reproduce\n\n1. Configure Coder Agents with an OpenAI provider whose account has no remaining credits.\n2. Send a message in a Coder Agents chat.\n3. The chat fails with \"The AI usage limit has been exceeded. Contact an administrator or check the applicable budget and quota settings.\"\n\n### Environment\n\n- Coder version: reproduced by a user on a recent release; the message is unchanged on `main` as of 2026-11-12.\n\nCreated on behalf of @grove-mountain\n","author":{"url":"https://github.com/apps/coder","@type":"Person","name":"coder"},"datePublished":"2026-11-12T17:02:28Z","url":"https://github.com/coder/coder/issues/32101"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:36a0451c-f7b8-e986-d14b-b0f3eb96afa8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B8C:D9868:9A2845:D84A53:6B042D5A |
| html-safe-nonce | 6d5715c30db46d6304e7a33c72ff9806186d59c1c65941e7ff5c08cd31086b4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjhDOkQ5ODY4OjlBMjg0NTpEODRBNTM6NkIwNDJENUEiLCJ2aXNpdG9yX2lkIjoiMzkxMzE0ODc0MjQ1MDI5NDEwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 04f2db88df8ae256b0338559fa22cd4bbe5c9f9e844a7e8cb64fbf4ae4e0956c |
| hovercard-subject-tag | issue:6354911392 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/32101/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f14e76b36c782cb8b42389652d081427063b071e06d3bb56c818abe5d62ec28a/coder/coder/issues/32101 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f14e76b36c782cb8b42389652d081427063b071e06d3bb56c818abe5d62ec28a/coder/coder/issues/32101 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues Current Behavior Coder Agents maps provider failures to generic error kinds, and the terminal message for some kinds points ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coder[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width