mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-02 05:45:20 +08:00
fix(box): ignore box.local.env in multi-workspace deployments
Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-authored-by: multica-agent <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
multica-agent
parent
ba76ac5300
commit
49afd9f320
@@ -1843,10 +1843,17 @@ class BoxService:
|
||||
can read settings such as a service base URL. A per-call ``env`` supplied
|
||||
by the agent or caller overrides the matching defaults. Non-dict configs
|
||||
and non-string keys or values are ignored.
|
||||
|
||||
The setting is instance-wide, so it is disabled in multi-workspace
|
||||
deployments to keep operator values from reaching every tenant's sandbox.
|
||||
"""
|
||||
raw_env = self._local_config().get('env')
|
||||
if not isinstance(raw_env, dict):
|
||||
return {}
|
||||
if self._cloud_managed:
|
||||
if raw_env:
|
||||
self.ap.logger.warning('box.local.env is ignored in multi-workspace deployments.')
|
||||
return {}
|
||||
|
||||
env: dict[str, str] = {}
|
||||
for key, value in raw_env.items():
|
||||
|
||||
Reference in New Issue
Block a user