Skip to content

feat(seer): Show the daily usage limit when Seer credit checks deny for it - #131076

Draft
billyvg wants to merge 1 commit into
masterfrom
billyvong/cw-3098-use-credit-checks-denialreason-to-show
Draft

billyvg wants to merge 1 commit into
masterfrom
billyvong/cw-3098-use-credit-checks-denialreason-to-show

Conversation

@billyvg

@billyvg billyvg commented Nov 13, 2026

Copy link
Copy Markdown
Member

The Seer credit check now says why it denied credit (denialReason, from #130857), and the out-of-credits notice uses it. When an org hits its daily usage limit, the notice says so and when the limit resets, instead of telling people to add credits.

  • Daily usage limit (daily_cap_exceeded): "Your organization hit its daily usage limit, so you cannot continue messaging Seer.", then "This will reset at …", the next midnight UTC in the viewer's timezone. Billing members get Configure auto-reload, where the limit is set. Members are told to ask their admin and get no button, since "Contact Admin" asks for credits, which won't lift the limit. Autofix gets the same notice for its own steps.
  • Auto-reload on: billing members who run out with auto-reload on see the same daily-limit notice. It replaces the "no auto top-ups remaining" copy, since auto-reload keeps topping the org up until the limit stops it.
  • Not enough credits: unchanged, except Autofix's copy now says "auto-reload" and "daily usage limit" instead of "auto top-up" and "daily token limit".

denialReason is now a required prop of SeerOutOfCreditsCta, so every surface passes its own check's reason: the chat, the Autofix tab and drawer, the issue sidebar, the issue preview and Autofix cards. In the chat, Autofix cards send their reason with the out-of-credits report they already make, so the chat's single notice shows the limit too.

The design also shows today's usage ("Daily usage limit 950/1000 credits"). No endpoint returns that yet, so it's left for a follow-up that adds it to the Seer wallet endpoint.

The chat shots are from a local devserver with the credit check mocked to deny; the rest are from the notice's stories. Before is master.

State Before After
Chat, denied for the daily usage limit Chat notice before, denied for the daily limit Chat notice after, denied for the daily limit
Chat, out of credits with auto-reload on Chat notice before, auto-reload on Chat notice after, auto-reload on
Autofix, billing member, out of credits Autofix start notice before Autofix start notice after
Autofix, member, out of credits Autofix member notice before Autofix member notice after

The daily usage limit notices are new: billing member in the chat, member in the chat, and billing member in Autofix.

Daily usage limit notices for a billing member in the chat, a member in the chat, and a billing member in Autofix

Refs CW-3098

🤖 Generated with Claude Code

…or it

The Seer credit check now says why it denied credit. useSeerCreditCheck
returns the denialReason, and every surface passes it to the
out-of-credits CTA, which now requires it.

When the reason is daily_cap_exceeded, or a billing member has
auto-reload on, the notice says the org hit its daily usage limit and
when the limit resets, at the next midnight UTC. Billing members
configure auto-reload. Members get no button, since asking admins for
credits doesn't lift the limit. This replaces the copy for orgs whose
auto-reload ran out of top-ups.

In the chat, Autofix cards send their denial reason with their
out-of-credits report, so the chat's single notice shows the daily
limit too.

Autofix's out-of-credits copy now says auto-reload and daily usage
limit, instead of auto top-up and daily token limit.

Refs CW-3098

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 13, 2026

Copy link
Copy Markdown

CW-3098

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This branch was successfully deployed

1 active deployment
Preview — 25e0ca33 Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant