mirror of
https://github.com/coder/coder.git
synced 2026-06-06 14:38:23 +00:00
feat: expose ai_providers_env_drift_detected on appearance config
Surface the deprecated-env-drift flag set at startup through a new read-only AppearanceConfig.ai_providers_env_drift_detected field. The AGPL and enterprise appearance fetchers read a process-local atomic (API.AIProvidersEnvDrift) so the dashboard can warn admins that their env changes are ineffective. Regenerated SDK types and swagger.
This commit is contained in:
+1
-1
@@ -666,7 +666,7 @@ func New(options *Options) *API {
|
||||
options.AppSigningKeyCache,
|
||||
)
|
||||
|
||||
f := appearance.NewDefaultFetcher(api.DeploymentValues.DocsURL.String())
|
||||
f := appearance.NewDefaultFetcher(api.DeploymentValues.DocsURL.String(), &api.AIProvidersEnvDrift)
|
||||
api.AppearanceFetcher.Store(&f)
|
||||
api.PortSharer.Store(&portsharing.DefaultPortSharer)
|
||||
api.PrebuildsClaimer.Store(&prebuilds.DefaultClaimer)
|
||||
|
||||
Reference in New Issue
Block a user