Skip to content

feat(slack): Reply to @-mentions when Seer runs out of credits - #130440

Draft
alexsohn1126 wants to merge 1 commit into
alexsohn/cw-2325-slack-out-of-credits-repliesfrom
alexsohn/cw-2325-slack-out-of-credits-mention-replies
Draft

alexsohn1126 wants to merge 1 commit into
alexsohn/cw-2325-slack-out-of-credits-repliesfrom
alexsohn/cw-2325-slack-out-of-credits-mention-replies

Conversation

@alexsohn1126

Copy link
Copy Markdown
Member

This PR is stacked on #129975, which adds the SeerAutofixOutOfCredits notification and uses it for autofix. This one uses the same notification for @-mentions of Seer.

After #130352, a mention from an org without credits is stopped with no reply. And when an agent chat run that's already going stops for credits, the thread gets whatever Seer last wrote, a plain-text notice ("Your organization doesn't have enough Seer credits for this, so I stopped here. Add credits to continue."). When Seer couldn't open or push a PR because of credits, the thread just says the latest push failed.

Slack now posts the out-of-credits notification when:

  • a mention is stopped by the credit check from feat(slack): Check Seer credits before running an agent chat mention #130352. The user gets it as an ephemeral reply in the thread. If it fails to send, the "is thinking..." status still gets cleared and no run starts.
  • an agent chat turn stops for credits. The check runs before the usual "post the turn's last answer" step, so Seer's own notice is no longer posted, and each stopped turn gets the notification once.
  • a PR push fails for credits. The PR status line under the answer says "Couldn't push to repo: your organization is out of Seer credits" instead of "Latest push failed", and the thread also gets the notification, once per failed PR.

Fixes CW-2325

🤖 Generated with Claude Code

@linear-code

linear-code Bot commented Nov 9, 2026

Copy link
Copy Markdown

CW-2325

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 9, 2026
@alexsohn1126
alexsohn1126 force-pushed the alexsohn/cw-2325-slack-out-of-credits-mention-replies branch from 40899d5 to fa1ae81 Compare November 9, 2026 15:54
@sentry

sentry Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
0 0 0 0 798 0 ✅ Unchanged

⚙️ sentry-frontend Snapshot Settings

@alexsohn1126
alexsohn1126 force-pushed the alexsohn/cw-2325-slack-out-of-credits-mention-replies branch 6 times, most recently from c62ef58 to 93db726 Compare November 9, 2026 20:23
@alexsohn1126
alexsohn1126 removed this pull request from stack #130441 November 9, 2026 20:24
@alexsohn1126
alexsohn1126 force-pushed the alexsohn/cw-2325-slack-out-of-credits-mention-replies branch from 93db726 to c90d978 Compare November 9, 2026 20:29
@alexsohn1126
alexsohn1126 force-pushed the alexsohn/cw-2325-slack-out-of-credits-mention-replies branch 2 times, most recently from b9026f4 to 024d646 Compare November 9, 2026 21:09
Slack posts the agent out-of-credits notification when a mention is
stopped by the credit check, when an agent chat turn stops for credits,
and when a PR push fails for credits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alexsohn1126
alexsohn1126 force-pushed the alexsohn/cw-2325-slack-out-of-credits-mention-replies branch from 024d646 to 067f33d Compare November 10, 2026 04:19

This branch has not been deployed

No deployments
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