Skip to content

feat(autofix): add modal for GitHub Copilot license required#108783

Merged
JoshFerge merged 1 commit intomasterfrom
jferg/copilot-not-licensed-failure-type-frontend
Feb 20, 2026
Merged

feat(autofix): add modal for GitHub Copilot license required#108783
JoshFerge merged 1 commit intomasterfrom
jferg/copilot-not-licensed-failure-type-frontend

Conversation

@JoshFerge
Copy link
Copy Markdown
Member

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.

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.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 20, 2026
@JoshFerge JoshFerge marked this pull request as ready for review February 20, 2026 23:32
@JoshFerge JoshFerge requested a review from a team as a code owner February 20, 2026 23:32
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@JoshFerge JoshFerge merged commit 3a9a0d6 into master Feb 20, 2026
64 checks passed
@JoshFerge JoshFerge deleted the jferg/copilot-not-licensed-failure-type-frontend branch February 20, 2026 23:45
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.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

claude-code-assisted Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants