Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

fix(config): keep non-LLM saved env values

0xallam4d9154a7f8e4
diff --git a/strix/config/config.py b/strix/config/config.py
index 636c8bfb..649d6538 100644
--- a/strix/config/config.py
+++ b/strix/config/config.py
@@ -126,8 +126,9 @@ class Config:
env_vars.pop(var_name, None)
cls.save({"env": env_vars})
if cls._llm_env_changed(env_vars):
- cls.save({"env": {}})
- return {}
+ for var_name in cls._llm_env_vars():
+ env_vars.pop(var_name, None)
+ cls.save({"env": env_vars})
applied = {}
for var_name, var_value in env_vars.items():