From 3064895bbba7aa8445df1876e4160caa230dce9e Mon Sep 17 00:00:00 2001 From: Yongteng Lei Date: Wed, 8 Apr 2026 15:35:30 +0800 Subject: [PATCH] Fix: import error in sandbox provider (#13971) ### What problem does this PR solve? Fix import error in sandbox provider. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) ## Summary by CodeRabbit * **Chores** * Updated internal configuration import mechanism for sandbox provider initialization. No end-user impact. --- agent/sandbox/providers/self_managed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/sandbox/providers/self_managed.py b/agent/sandbox/providers/self_managed.py index 29d8d80e19..0e73e2f9e1 100644 --- a/agent/sandbox/providers/self_managed.py +++ b/agent/sandbox/providers/self_managed.py @@ -70,7 +70,7 @@ class SelfManagedProvider(SandboxProvider): # Try to fall back to SANDBOX_HOST from settings if we are using localhost if "localhost" in self.endpoint or "127.0.0.1" in self.endpoint: try: - from api import settings + from common import settings if settings.SANDBOX_HOST and settings.SANDBOX_HOST not in self.endpoint: original_endpoint = self.endpoint self.endpoint = f"http://{settings.SANDBOX_HOST}:9385"