From 305a8fe7e60cd8d5c85111b65281a37f876cadcb Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Thu, 4 Jun 2026 13:44:02 +0200 Subject: [PATCH] refactor(config): remove dead MULTI_AGENT_CHAT_ENABLED flag (bucket B5) Multi-agent is now the only chat path (B1-B4), so the flag is dead config. Drop it from app/config and .env.example. Suite green (2710 passed). --- surfsense_backend/.env.example | 3 --- surfsense_backend/app/config/__init__.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/surfsense_backend/.env.example b/surfsense_backend/.env.example index 907a48ea2..18b9ee281 100644 --- a/surfsense_backend/.env.example +++ b/surfsense_backend/.env.example @@ -323,9 +323,6 @@ LANGSMITH_PROJECT=surfsense # ============================================================================= # OPTIONAL: New-chat agent feature flags # ============================================================================= -# Multi-agent orchestrator switch for authenticated chat streaming. -# MULTI_AGENT_CHAT_ENABLED=false - # Master kill-switch — when true, every flag below is forced OFF. # SURFSENSE_DISABLE_NEW_AGENT_STACK=false diff --git a/surfsense_backend/app/config/__init__.py b/surfsense_backend/app/config/__init__.py index f3c05f2d6..203e36580 100644 --- a/surfsense_backend/app/config/__init__.py +++ b/surfsense_backend/app/config/__init__.py @@ -645,9 +645,6 @@ class Config: # Anonymous / no-login mode settings NOLOGIN_MODE_ENABLED = os.getenv("NOLOGIN_MODE_ENABLED", "FALSE").upper() == "TRUE" - MULTI_AGENT_CHAT_ENABLED = ( - os.getenv("MULTI_AGENT_CHAT_ENABLED", "FALSE").upper() == "TRUE" - ) ANON_TOKEN_LIMIT = int(os.getenv("ANON_TOKEN_LIMIT", "500000")) ANON_TOKEN_WARNING_THRESHOLD = int( os.getenv("ANON_TOKEN_WARNING_THRESHOLD", "400000")