Repository navigation
fix(auth): Hard-fail bot authorization requests - #700
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 20c3cd9. Configure here.
dcramer
force-pushed
the
fix/slack-bot-auth-hard-fail
branch
from
June 30, 2026 22:11
20c3cd9 to
8e58d78
Compare
Bot-authored Slack turns can still run through the subscribed reply path, but they cannot own user authorization. Treat bot requesters as disabled auth flows before recording pending auth or sending private auth links, and make Slack handlers treat that disabled-auth error as terminal instead of posting fallback errors. Ignore skipped bystander messages when deciding whether a pending auth turn is still the latest real request, so OAuth callbacks can resume the original parked turn. Fixes #695 Fixes #698 Co-Authored-By: GPT-5 Codex <[email protected]>
Only ignore skipped non-request messages when checking whether a pending auth callback still belongs to the latest request. Failed and opt-out turns remain real newer user turns, so stale OAuth callbacks cannot resume older parked sessions after them. Co-Authored-By: GPT-5 Codex <[email protected]>
dcramer
force-pushed
the
fix/slack-bot-auth-hard-fail
branch
from
June 30, 2026 23:00
8e58d78 to
912270f
Compare
dcramer
marked this pull request as ready for review
June 30, 2026 23:12
This branch was successfully 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.

Bot-authored Slack turns can still run through subscribed and mention handling, but they now fail authorization requests before Junior records pending auth or sends private OAuth links. Disabled auth from bot requesters is treated as a terminal auth condition at the Slack handler boundary, which avoids fallback replies and queue retry loops.
Pending auth resume also ignores skipped bystander messages when deciding whether the parked auth turn is still the latest real request. The regression coverage uses Slack runtime integration paths for MCP auth, plugin auth, and OAuth callback resume rather than isolated unit tests.
Fixes #695
Fixes #698