mirror of
https://github.com/usestrix/strix.git
synced 2026-09-06 08:15:56 +00:00
fix(config): keep non-LLM saved env values
When LLM env differs, drop only LLM-related saved entries instead of clearing all saved env vars, preserving other config like API keys.
This commit is contained in:
parent
1d34ccbf36
commit
d3dc518b36
1 changed files with 3 additions and 2 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue