feat(autofix): Show Cursor GitHub access modal on verify-branch error#109695
Merged
isaacwang-sentry merged 3 commits intomasterfrom Mar 5, 2026
Merged
feat(autofix): Show Cursor GitHub access modal on verify-branch error#109695isaacwang-sentry merged 3 commits intomasterfrom
isaacwang-sentry merged 3 commits intomasterfrom
Conversation
Add frontend handling for the new `cursor_github_access` failure type. When Cursor fails to verify branch existence due to missing GitHub App access, show a modal guiding users to install the Cursor GitHub App instead of a generic error toast. AIML-2569
JoshFerge
reviewed
Mar 2, 2026
Member
JoshFerge
left a comment
There was a problem hiding this comment.
mind adding a screenshot? 🙏🏼
Member
Author
Sorry I meant to make this a draft PR, not done with testing yet, will upload screenshot when its ready |
Member
Author
|
Here is a video of the modal: Screen.Recording.2026-03-03.at.1.29.57.PM.movThis is just what it looks like, will test the flow as a whole when the backend PR gets merged through |
JonasBa
pushed a commit
that referenced
this pull request
Mar 5, 2026
…#109695) ## Summary - Adds a new `AutofixCursorGithubAccessModal` component that guides users to install the Cursor GitHub App when Cursor can't access a repository - Updates both `useAutofix` and `useExplorerAutofix` hooks to detect the new `cursor_github_access` failure type and show the modal instead of a generic error toast Depends on backend PR: #109692 AIML-2569 ## Test plan - [x] Frontend test passes: `CI=true pnpm test static/app/components/events/autofix/autofixCursorGithubAccessModal.spec.tsx` - [x] Modal renders with correct title, body, and link to `https://github.com/apps/cursor` - [x] When backend returns `cursor_github_access` failure_type, modal is shown instead of generic error toast
3 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
AutofixCursorGithubAccessModalcomponent that guides users to install the Cursor GitHub App when Cursor can't access a repositoryuseAutofixanduseExplorerAutofixhooks to detect the newcursor_github_accessfailure type and show the modal instead of a generic error toastDepends on backend PR: #109692
AIML-2569
Test plan
CI=true pnpm test static/app/components/events/autofix/autofixCursorGithubAccessModal.spec.tsxhttps://github.com/apps/cursorcursor_github_accessfailure_type, modal is shown instead of generic error toast