AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
refactor(platform): drop leftover names of retired feature flags (#15354)
Reinier van der Leercce8ccd589d3
diff --git a/autogpt_platform/backend/backend/util/feature_flag/__init__.py b/autogpt_platform/backend/backend/util/feature_flag/__init__.pyindex 18936f41a8..90f2044a94 100644--- a/autogpt_platform/backend/backend/util/feature_flag/__init__.py+++ b/autogpt_platform/backend/backend/util/feature_flag/__init__.py@@ -104,7 +104,7 @@ class Flag(str, Enum):# No "enabled-users list" flag — LD's per-flag targeting natively# cohorts the canary (internal team → 5 → 50 → 500 → 5k), and# ``is_feature_enabled(..., user_id, ...)`` evaluates each user.- # The four flags below are the master gate + three per-feature+ # The flags below are the master gate + its per-feature# gates. Helper functions live next to the code that consumes them# (added when each feature lands); these enum entries are# scaffolding so the LD keys can be configured ahead of code.@@ -135,23 +135,6 @@ class Flag(str, Enum):# launch is not reachable by URL with the shelf hidden. Fail-closed.SKILLS_HUB = "skills-hub"- # Per-feature gate for the web-fact-check tool (P0.5). The tool- # can only DEMOTE memories on contradiction; new web-derived- # facts ride the ratification loop as tentative. Off on the- # local-LLM transport by default (most local installs lack a- # search-API key); cloud opt-in. Independent of- # ``DREAM_PASS_ENABLED`` so the dream pass can run without- # external network calls when this flag is off.- DREAM_PASS_WEB_FACT_CHECK = "dream-pass-web-fact-check"-- # Orchestrator-level kill switch for the web-fact-check hook- # introduced alongside the P0.5 scaffolding. Distinct from- # ``DREAM_PASS_WEB_FACT_CHECK`` so the hook can be wired into the- # orchestrator without auto-running on every dream pass before a- # search backend is bound — flip this on per-user once a backend- # is configured.- DREAM_WEB_FACT_CHECK_ENABLED = "dream-web-fact-check-enabled"-# Per-feature gate for the cascading-expiry helper# ``invalidate_entity_direct_neighbors`` (P0.3b). When on, the# dream pass may demote every ``:RELATES_TO`` edge directly@@ -210,9 +193,6 @@ class Flag(str, Enum):# a cohort before it reaches everyone.CHAT_CONNECTION_UPSELL = "chat-connection-upsell"- # Shrinks what Otto reads: strips builder-UI annotations from the- # block schemas, and digests oversized tool results to the workspace.-# LaunchDarkly keys whose targeting is segment membership or an individual-user# target — neither of which any PostHog cohort reproduces until phase 2 creates@@ -221,12 +201,9 @@ class Flag(str, Enum):LD_UNPORTED_TARGETING = frozenset({"ai-agent-execution-summary",- "artifacts","artifacts-page","autogpt-new-layout","AutoMod",- "beta-blocks",- "chat","chat-mode-option","chat-search","chat-sharing",@@ -235,9 +212,6 @@ LD_UNPORTED_TARGETING = frozenset("enable-platform-payment","generic-trigger-agents","graphiti-memory",- "new-tool-ui",- "nightly-copilot",- "SHOW_ORG_SETTINGS","task-progress-bar",})diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expert-threads.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expert-threads.test.tsxindex 90fb9315a9..b2361d2ccc 100644--- a/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expert-threads.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expert-threads.test.tsx@@ -931,7 +931,6 @@ describe("ChatMessagesContainer — expert identity", () => {});it("keeps the chip a passive label with no file counter", async () => {- flagState.values["artifacts"] = true;let workspaceFileRequests = 0;server.use(getGetExpertMockHandler(mariaExpert),diff --git a/autogpt_platform/frontend/src/services/feature-flags/__tests__/flag-defaults.test.ts b/autogpt_platform/frontend/src/services/feature-flags/__tests__/flag-defaults.test.tsindex 2db15e99ab..af118a3fe6 100644--- a/autogpt_platform/frontend/src/services/feature-flags/__tests__/flag-defaults.test.ts+++ b/autogpt_platform/frontend/src/services/feature-flags/__tests__/flag-defaults.test.ts@@ -21,7 +21,6 @@ const DREAM_GRAPHITI_FLAGS = [Flag.GRAPHITI_MEMORY,Flag.GRAPHITI_COMMUNITIES_ENABLED,Flag.DREAM_PASS_ENABLED,- Flag.DREAM_PASS_WEB_FACT_CHECK,Flag.DREAM_PASS_INVALIDATE_ENTITY,] as const;diff --git a/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.ts b/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.tsindex aa8f769e1d..17d2d30dcb 100644--- a/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.ts+++ b/autogpt_platform/frontend/src/services/feature-flags/use-get-flag.ts@@ -47,7 +47,6 @@ export enum Flag {GRAPHITI_MEMORY = "graphiti-memory",GRAPHITI_COMMUNITIES_ENABLED = "graphiti-communities-enabled",DREAM_PASS_ENABLED = "dream-pass-enabled",- DREAM_PASS_WEB_FACT_CHECK = "dream-pass-web-fact-check",DREAM_PASS_INVALIDATE_ENTITY = "dream-pass-invalidate-entity",// JSON flag mapping copilot-bot platform key (lowercase) -> visible on the// Bots settings page. Lets ops hide a platform (e.g. Slack while its@@ -96,7 +95,6 @@ const defaultFlags = {[Flag.GRAPHITI_MEMORY]: false,[Flag.GRAPHITI_COMMUNITIES_ENABLED]: false,[Flag.DREAM_PASS_ENABLED]: false,- [Flag.DREAM_PASS_WEB_FACT_CHECK]: false,[Flag.DREAM_PASS_INVALIDATE_ENTITY]: false,[Flag.COPILOT_BOT_PLATFORMS]: {} as Record<string, boolean>,[Flag.COPILOT_VOICE_MODE]: false,@@ -162,8 +160,6 @@ function readEnvOverride(flag: Flag): string | undefined {return process.env.NEXT_PUBLIC_FORCE_FLAG_GRAPHITI_COMMUNITIES_ENABLED;case Flag.DREAM_PASS_ENABLED:return process.env.NEXT_PUBLIC_FORCE_FLAG_DREAM_PASS_ENABLED;- case Flag.DREAM_PASS_WEB_FACT_CHECK:- return process.env.NEXT_PUBLIC_FORCE_FLAG_DREAM_PASS_WEB_FACT_CHECK;case Flag.DREAM_PASS_INVALIDATE_ENTITY:return process.env.NEXT_PUBLIC_FORCE_FLAG_DREAM_PASS_INVALIDATE_ENTITY;case Flag.COPILOT_VOICE_MODE: