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:
Danny Kopping
2026-06-01 09:29:54 +00:00
parent 2716632a51
commit 56c9d0dcbb
13 changed files with 67 additions and 30 deletions
+1 -1
View File
@@ -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)