fix(enterprise/coderd/license): suppress AI Governance seat-count error for not-entitled licenses by SasSwart · Pull Request #26276 · coder/coder · GitHub
Skip to content

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

Merged
SasSwart merged 1 commit into
release/2.34from
cherry-pick/25885-release-2.34
Jun 11, 2026
Merged

fix(enterprise/coderd/license): suppress AI Governance seat-count error for not-entitled licenses#26276
SasSwart merged 1 commit into
release/2.34from
cherry-pick/25885-release-2.34

Conversation

@SasSwart

Copy link
Copy Markdown
Contributor

Cherry-pick of #25885 into release/2.34 for patch release.

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. This suppresses the EntitlementNotEntitled case so it no longer alarms customers who never purchased the addon.

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

Generated with Coder Agents on behalf of @SasSwart

…or for not-entitled licenses (#25885)

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
@linear-code

linear-code Bot commented Jun 11, 2026

Copy link
Copy Markdown

@SasSwart SasSwart merged commit 6419f53 into release/2.34 Jun 11, 2026
56 checks passed
@SasSwart SasSwart deleted the cherry-pick/25885-release-2.34 branch June 11, 2026 18:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants