Skip to content

feat(seer): Add out-of-credits notification for Autofix - #130270

Closed
alexsohn1126 wants to merge 3 commits into
masterfrom
alexsohn/cw-2329-seer-out-of-credits-notification
Closed

alexsohn1126 wants to merge 3 commits into
masterfrom
alexsohn/cw-2329-seer-out-of-credits-notification

Conversation

@alexsohn1126

@alexsohn1126 alexsohn1126 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Adding out of credits notification template for Autofix.

🤖 generated description below:


This adds SeerOutOfCredits, a new notification on the notification platform. It tells a user that their org doesn't have enough Seer credits to continue an Autofix run. It isn't tied to Slack, so any provider can render it. It has one copy for now: "Your org does not have enough credits to continue your Autofix run. Set up auto top up to keep your flow uninterrupted." It also has a started flag: false when someone tried to start Seer without credits, true when a run ran out partway through. Both cases show the same text today, and the flag lets the two messages diverge later without changing callers. The Slack renderer gets a branch that renders it.

It also adds two pieces the Slack renderer uses to hide the next-step button on an autofix update. SeerAutofixUpdate.next_seer_stopping_point is the Seer step the next-step button would start. It is None for the root-cause handoff button and when there is no next step. SeerAutofixUpdate.has_credits_for_next_step says whether the org can pay for that step. It defaults to True, so tasks already in the queue keep working. The renderer shows the next-step button only when both are set. The handoff button is unchanged.

Nothing sends SeerOutOfCredits or sets has_credits_for_next_step to False yet, so this changes no behavior on its own. #130271, stacked on this PR, does the wiring: the credit checks, the out-of-credits reply when someone clicks a button, and the Slack entrypoint changes.

Refs CW-2329

alexsohn1126 and others added 3 commits November 5, 2026 16:07
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 6, 2026

Copy link
Copy Markdown

CW-2329

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 6, 2026
@alexsohn1126
alexsohn1126 removed this pull request from stack #130280 November 6, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant