From fbe6e145ec43815b72218cdba68e46d1cb048c4b Mon Sep 17 00:00:00 2001 From: youhuanghe <1051233107@qq.com> Date: Sat, 21 Mar 2026 12:12:15 +0000 Subject: [PATCH] fix: import --- src/langbot/pkg/provider/tools/loaders/mcp.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/langbot/pkg/provider/tools/loaders/mcp.py b/src/langbot/pkg/provider/tools/loaders/mcp.py index e58a6c90..d0390257 100644 --- a/src/langbot/pkg/provider/tools/loaders/mcp.py +++ b/src/langbot/pkg/provider/tools/loaders/mcp.py @@ -333,7 +333,7 @@ class RuntimeMCPSession: async def _monitor_box_process_health(self): """Poll managed process status; return when process exits.""" - from ...box.models import BoxManagedProcessStatus + from langbot.pkg.box.models import BoxManagedProcessStatus session_id = self._build_box_session_id() consecutive_errors = 0 @@ -345,9 +345,6 @@ class RuntimeMCPSession: else: status = getattr(info, 'status', '') if status == BoxManagedProcessStatus.EXITED.value or status == BoxManagedProcessStatus.EXITED: - self.ap.logger.info( - f'MCP monitor for {self.server_name}: process exited' - ) return consecutive_errors = 0 except Exception as exc: