feat(autofix): add modal for GitHub Copilot license required#108783
Merged
feat(autofix): add modal for GitHub Copilot license required#108783
Conversation
Adds AutofixGithubCopilotPurchaseModal, shown when the backend returns failure_type "github_copilot_not_licensed" (user lacks a Copilot license). Handles the new failure type in both useAutofix and useExplorerAutofix, following the same pattern as the existing github_app_permissions modal.
Contributor
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.
gricha
approved these changes
Feb 20, 2026
1 task
priscilawebdev
pushed a commit
that referenced
this pull request
Feb 24, 2026
Adds a modal that appears when a user tries to launch GitHub Copilot as a coding agent but their GitHub account doesn't have an active Copilot license. The backend PR (#108782) changed the `failure_type` from `"generic"` to `"github_copilot_not_licensed"` for this case. This PR handles that signal in both `useAutofix` and `useExplorerAutofix`, opening `AutofixGithubCopilotPurchaseModal` instead of falling through to a generic error toast. The new modal follows the same structure as `AutofixGithubAppPermissionsModal` — close button, explanatory text, a "Remind me later" dismiss button, and a primary "Get GitHub Copilot" link to `https://github.com/features/copilot`. Depends on #108782.
mchen-sentry
pushed a commit
that referenced
this pull request
Feb 24, 2026
Adds a modal that appears when a user tries to launch GitHub Copilot as a coding agent but their GitHub account doesn't have an active Copilot license. The backend PR (#108782) changed the `failure_type` from `"generic"` to `"github_copilot_not_licensed"` for this case. This PR handles that signal in both `useAutofix` and `useExplorerAutofix`, opening `AutofixGithubCopilotPurchaseModal` instead of falling through to a generic error toast. The new modal follows the same structure as `AutofixGithubAppPermissionsModal` — close button, explanatory text, a "Remind me later" dismiss button, and a primary "Get GitHub Copilot" link to `https://github.com/features/copilot`. Depends on #108782.
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.
Adds a modal that appears when a user tries to launch GitHub Copilot as a coding agent but their GitHub account doesn't have an active Copilot license.
The backend PR (#108782) changed the
failure_typefrom"generic"to"github_copilot_not_licensed"for this case. This PR handles that signal in bothuseAutofixanduseExplorerAutofix, openingAutofixGithubCopilotPurchaseModalinstead of falling through to a generic error toast.The new modal follows the same structure as
AutofixGithubAppPermissionsModal— close button, explanatory text, a "Remind me later" dismiss button, and a primary "Get GitHub Copilot" link tohttps://github.com/features/copilot.Depends on #108782.