fix: preserve config import order and restore editor focus
This commit is contained in:
1 parent
1066adb10b
commit
885a0d4597
4 files changed
+8
-5
No files matched your search
@@ -2,7 +2,6 @@
|
||||
|
||||
from copy import deepcopy
|
||||
|
||||
from nanobot.config.loader import resolve_config_env_vars, resolve_env_refs
|
||||
from nanobot.config.schema import Config, ModelPresetConfig, ProviderConfig, RequestOverrides
|
||||
|
||||
|
||||
@@ -10,6 +9,8 @@ def isolate_request_overrides(
|
||||
config: Config, previous: ModelPresetConfig, candidate: ModelPresetConfig,
|
||||
) -> ModelPresetConfig:
|
||||
"""Keep inherited request settings only within the same configured connection."""
|
||||
from nanobot.config.loader import resolve_config_env_vars, resolve_env_refs
|
||||
|
||||
if not any((previous.extra_headers, previous.extra_query, previous.extra_body)):
|
||||
return candidate
|
||||
routing = resolve_config_env_vars(config)
|
||||
|
||||
Reference in new issue
Block a user