Repository navigation
feat(slack): Reply in the thread when an autofix run runs out of Seer credits - #129975
Open
alexsohn1126 wants to merge 7 commits into
Conversation
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 5, 2026 21:01
9e883a3 to
b6b03b8
Compare
alexsohn1126
changed the base branch from
master
to
alexsohn/cw-2329-slack-gate-autofix-buttons-on-seer-credits
November 5, 2026 21:01
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 5, 2026 21:17
b6b03b8 to
8df47e0
Compare
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 5, 2026 21:50
8df47e0 to
3920a4b
Compare
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 7, 2026 03:50
3920a4b to
893492f
Compare
alexsohn1126
changed the base branch from
alexsohn/cw-2329-slack-gate-autofix-buttons-on-seer-credits
to
alexsohn/cw-2342-slack-check-seer-credits-before-running-an-agent-chat
November 7, 2026 03:51
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 9, 2026 15:27
893492f to
d1a3df9
Compare
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 9, 2026 15:54
d1a3df9 to
95b1244
Compare
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
2 times, most recently
from
November 9, 2026 20:23
ffb6bbd to
cad4295
Compare
alexsohn1126
changed the base branch from
alexsohn/cw-2342-slack-check-seer-credits-before-running-an-agent-chat
to
alexsohn/cw-2325-autofix-out-of-credits-notification
November 9, 2026 20:24
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
6 times, most recently
from
November 10, 2026 21:04
0afd96f to
72aebbf
Compare
Member
Author
|
bugbot review |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 72aebbf. Configure here.
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
2 times, most recently
from
November 12, 2026 15:26
20e4898 to
d55fd4c
Compare
alexsohn1126
marked this pull request as ready for review
November 12, 2026 15:29
cmanallen
approved these changes
Nov 12, 2026
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 12, 2026 17:59
d55fd4c to
d40e087
Compare
srest2021
approved these changes
Nov 12, 2026
billyvg
approved these changes
Nov 12, 2026
… credits Slack posts the autofix out-of-credits notification to every thread watching a run that fails for lack of credits, and the completion hook reports runs whose PRs all failed for credits as out_of_credits. SeerAutofixOperator.can_trigger_next_step decides whether the step after an autofix update can run, so the update hides the next-step button when the org can't run it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Slack autofix update no longer hides the next-step button when the org has no Seer credits for that step, so drop can_trigger_next_step, the stopping point to Seer operation mapping, and the stopping_point argument on can_trigger_autofix. A step that can't run fails in Seer and the thread gets the out-of-credits reply. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The out-of-credits notification now has a copy per reader. The thread reply doesn't know who is reading, so it uses the member copy. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
alexsohn1126
force-pushed
the
alexsohn/cw-2325-slack-out-of-credits-replies
branch
from
November 12, 2026 21:45
d40e087 to
fa95b98
Compare
…e run Store the Slack user who started the run in the Autofix cache payload. When the run fails for credits, look up whether that user can manage billing and pick the copy and button for them. Runs nobody started by hand keep the member copy. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In Autofix from Slack, Autofix gives a button to a user to continue the Autofix run to the next stage.
This PR will add a billing check to those buttons, and reply with a message (as defined in #130500) to configure autoreload.
This works for every step of Autofix.
An example of this is when a user is trying to start the "draft a PR" step after code changes, but it cannot due to lack of Seer credits:
Works for other steps of Autofix as well, this is for the initial step (the RCA step):
Part of CW-2325