From 8eade29e68492238954f507a2333ee7faab1e35e Mon Sep 17 00:00:00 2001 From: Danny Kopping Date: Thu, 26 Mar 2026 11:10:53 +0200 Subject: [PATCH] chore: update AI Bridge warning to require AI Governance Add-On (#23662) *Disclaimer: implemented by a Coder Agent using Claude Opus 4.6, reviewed by me.* Replace the transitional soft warning message: > AI Bridge is now Generally Available in v2.30. In a future Coder version, your deployment will require the AI Governance Add-On to continue using this feature. Please reach out to your account team or sales@coder.com to learn more. with the definitive requirement message: > The AI Governance Add-On is required to use AI Bridge. Please reach out to your account team or sales@coder.com to learn more. Updated in: - `enterprise/coderd/license/license.go` - `enterprise/coderd/license/license_test.go` (2 occurrences) --- docs/ai-coder/ai-governance.md | 10 +++------- enterprise/coderd/license/license.go | 2 +- enterprise/coderd/license/license_test.go | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/ai-coder/ai-governance.md b/docs/ai-coder/ai-governance.md index c4ea9a906b..5abaf7af7c 100644 --- a/docs/ai-coder/ai-governance.md +++ b/docs/ai-coder/ai-governance.md @@ -81,13 +81,9 @@ rates, and usage patterns to inform decisions about AI strategy. Starting with Coder v2.30 (February 2026), AI Bridge and Agent Boundaries are generally available as part of the AI Governance Add-On. -If you've been experimenting with these features in earlier releases, you'll see -a notification banner in your deployment in v2.30. This banner is a reminder -that these features have moved out of beta and are now included with the AI -Governance Add-On. - -In v2.30, this notification is informational only. A future Coder release will -require the add-on to continue using AI Bridge and Agent Boundaries. +The AI Governance Add-On is required to use AI Bridge and Agent Boundaries. +If your deployment does not have the add-on, you'll see a notification banner +reminding you to enable it. To learn more about enabling the AI Governance Add-On, pricing, or trial options, reach out to your diff --git a/enterprise/coderd/license/license.go b/enterprise/coderd/license/license.go index 5a71ee9800..dfc2310919 100644 --- a/enterprise/coderd/license/license.go +++ b/enterprise/coderd/license/license.go @@ -555,7 +555,7 @@ func LicensesEntitlements( aiBridgeFeature := entitlements.Features[codersdk.FeatureAIBridge] if aiBridgeFeature.Enabled && aiBridgeFeature.Entitlement.Entitled() && !hasExplicitAIBridgeEntitlement { entitlements.Warnings = append(entitlements.Warnings, - "AI Bridge is now Generally Available in v2.30. In a future Coder version, your deployment will require the AI Governance Add-On to continue using this feature. Please reach out to your account team or sales@coder.com to learn more.") + "The AI Governance Add-On is required to use AI Bridge. Please reach out to your account team or sales@coder.com to learn more.") } } diff --git a/enterprise/coderd/license/license_test.go b/enterprise/coderd/license/license_test.go index 1296b23b96..dc6af3e25a 100644 --- a/enterprise/coderd/license/license_test.go +++ b/enterprise/coderd/license/license_test.go @@ -1344,7 +1344,7 @@ func TestAIBridgeSoftWarning(t *testing.T) { codersdk.FeatureAIBridge: false, } - aiBridgeWarningMessage := "AI Bridge is now Generally Available in v2.30. In a future Coder version, your deployment will require the AI Governance Add-On to continue using this feature. Please reach out to your account team or sales@coder.com to learn more." + aiBridgeWarningMessage := "The AI Governance Add-On is required to use AI Bridge. Please reach out to your account team or sales@coder.com to learn more." t.Run("NoAddon_AIBridgeOff", func(t *testing.T) { t.Parallel() @@ -1924,7 +1924,7 @@ func TestAIGovernanceAddon(t *testing.T) { // AI Bridge should be enabled without warning when addon is present. aibridgeFeature := entitlements.Features[codersdk.FeatureAIBridge] require.True(t, aibridgeFeature.Enabled, "AI Bridge should be enabled when addon is present and enablements are set") - aiBridgeWarningMessage := "AI Bridge is now Generally Available in v2.30. In a future Coder version, your deployment will require the AI Governance Add-On to continue using this feature. Please reach out to your account team or sales@coder.com to learn more." + aiBridgeWarningMessage := "The AI Governance Add-On is required to use AI Bridge. Please reach out to your account team or sales@coder.com to learn more." require.NotContains(t, entitlements.Warnings, aiBridgeWarningMessage, "AI Bridge warning should not appear when AI Governance addon is present") // require.Equal(t, codersdk.EntitlementEntitled, aibridgeFeature.Entitlement, "AI Bridge should be entitled when addon is present")