From 240a17615131da310ccef72541002c51fb7910b6 Mon Sep 17 00:00:00 2001 From: devops Date: Wed, 14 Oct 2026 21:55:58 +0000 Subject: [PATCH] fix(support-chat): preserve provider catalog in isolated runtime --- scripts/support-chat/bootstrap.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/support-chat/bootstrap.py b/scripts/support-chat/bootstrap.py index 76d19e1e..346fb45a 100644 --- a/scripts/support-chat/bootstrap.py +++ b/scripts/support-chat/bootstrap.py @@ -9,7 +9,16 @@ import hermes_yaml as yaml source = yaml.safe_load(Path('/opt/data/config.yaml').read_text()) home = Path('/run/canina-support') home.mkdir(mode=0o700, exist_ok=True) -safe = {'model': source.get('model', {}), 'web': source.get('web', {}), 'memory': {'memory_enabled': False, 'user_profile_enabled': False}, 'telemetry': {'shared_metrics': {'enabled': False, 'send': False}}, 'agent': {'max_iterations': 2}, 'compression': {'enabled': False}} +safe = { + 'model': source.get('model', {}), + # Provider names/models are configuration; credentials remain in env. + 'custom_providers': source.get('custom_providers', []), + 'web': source.get('web', {}), + 'memory': {'memory_enabled': False, 'user_profile_enabled': False}, + 'telemetry': {'shared_metrics': {'enabled': False, 'send': False}}, + 'agent': {'max_iterations': 2}, + 'compression': {'enabled': False}, +} p = home/'config.yaml' p.write_text(yaml.safe_dump(safe)); p.chmod(0o600) os.environ['HERMES_HOME']=str(home)