From c86015944645f5c1fceb3a6c4b22611fa9b5e60d Mon Sep 17 00:00:00 2001 From: dadachann <185672915+dadachann@users.noreply.github.com> Date: Sat, 25 Jul 2026 00:45:42 +0800 Subject: [PATCH] test(cloud): preserve minimal model manager fixtures --- src/langbot/pkg/provider/modelmgr/modelmgr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/langbot/pkg/provider/modelmgr/modelmgr.py b/src/langbot/pkg/provider/modelmgr/modelmgr.py index cac971906..bfbbfbcbc 100644 --- a/src/langbot/pkg/provider/modelmgr/modelmgr.py +++ b/src/langbot/pkg/provider/modelmgr/modelmgr.py @@ -164,7 +164,8 @@ class ModelManager: # Space model synchronization is a legacy OSS-singleton facility. Cloud # receives tenant model projections from its control plane and must not # resolve an OSS-local Workspace outside a tenant-scoped unit of work. - cloud_runtime = getattr(getattr(self.ap.persistence_mgr, 'mode', None), 'value', None) == 'cloud_runtime' + persistence_mgr = getattr(self.ap, 'persistence_mgr', None) + cloud_runtime = getattr(getattr(persistence_mgr, 'mode', None), 'value', None) == 'cloud_runtime' if cloud_runtime: self.ap.logger.info('Skipping legacy LangBot Space model sync in Cloud Runtime.') return