Fix all 4 Feature Manager bugs in server.py

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/77921fb1-4d4b-4d10-b982-b3768b858b86

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-03 14:52:14 +00:00
committed by GitHub
parent ab60d2b504
commit 9cc237fb5b

View File

@@ -882,7 +882,12 @@ async def api_features():
domain_name = feat.get("domain_name") domain_name = feat.get("domain_name")
domain_configured = True domain_configured = True
if domain_name: if domain_name:
domain_configured = os.path.exists(os.path.join(DOMAINS_DIR, domain_name)) domain_path = os.path.join(DOMAINS_DIR, domain_name)
try:
with open(domain_path, "r") as f:
domain_configured = bool(f.read(256).strip())
except OSError:
domain_configured = False
extra_fields = [] extra_fields = []
for ef in feat.get("extra_fields", []): for ef in feat.get("extra_fields", []):