Skip to content

fix(enterprise/coderd/license): suppress AI Governance seat-count error for not-entitled licenses#25885

Merged
SasSwart merged 1 commit into
mainfrom
sas/aigov-392-suppress-ai-governance-seat-count-error-for-not-entitled
Jun 4, 2026
Merged

fix(enterprise/coderd/license): suppress AI Governance seat-count error for not-entitled licenses#25885
SasSwart merged 1 commit into
mainfrom
sas/aigov-392-suppress-ai-governance-seat-count-error-for-not-entitled

Conversation

@SasSwart

@SasSwart SasSwart commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

When a Premium deployment has no AI Governance addon but has accumulated ai_seat_state rows (from prior Gateway testing or Task usage), the backend emitted an error in the LicenseBanner: "Your deployment has N active AI Governance seats but the license is not entitled to this feature." This is alarming and inactionable for customers who never purchased the addon.

Suppress the EntitlementNotEntitled case that appended to entitlements.Errors. Customers who purchased AI Governance still see all their seat-limit warnings (90% threshold, over-limit, grace period) since those are gated on entitled / grace_period and are unaffected.

Fixes https://linear.app/codercom/issue/AIGOV-392

Generated by Coder Agents on behalf of @SasSwart

@SasSwart

SasSwart commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Self review complete. This ended up being simpler than I expected, which makes me think I might be missing some context somewhere. I would appreciate a review from someone more familiar in the licensing space.

@SasSwart SasSwart requested a review from jakehwll June 1, 2026 08:10
@SasSwart SasSwart marked this pull request as ready for review June 1, 2026 08:11
@SasSwart SasSwart merged commit ce2e567 into main Jun 4, 2026
55 checks passed
@SasSwart SasSwart deleted the sas/aigov-392-suppress-ai-governance-seat-count-error-for-not-entitled branch June 4, 2026 09:18
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants