mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-16 14:57:15 +00:00
fix(agent): harden runner integration and QA
This commit is contained in:
@@ -487,10 +487,15 @@ class BoxStdioSessionRuntime:
|
||||
)
|
||||
|
||||
def _shared_workspace_host_path(self) -> str:
|
||||
default_workspace = getattr(self.ap.box_service, 'default_workspace', None)
|
||||
if not default_workspace:
|
||||
raise RuntimeError('Box default workspace is required for shared MCP host_path staging')
|
||||
shared_host_path = normalize_host_path(default_workspace)
|
||||
workspace_host_path = getattr(self.ap.box_service, 'workspace_host_path', None)
|
||||
if callable(workspace_host_path):
|
||||
shared_workspace = workspace_host_path(self.owner.execution_context)
|
||||
else:
|
||||
# Compatibility for older BoxService embedders used by plugins and tests.
|
||||
shared_workspace = getattr(self.ap.box_service, 'default_workspace', None)
|
||||
if not shared_workspace:
|
||||
raise RuntimeError('Box Workspace host path is required for shared MCP host_path staging')
|
||||
shared_host_path = normalize_host_path(shared_workspace)
|
||||
os.makedirs(shared_host_path, exist_ok=True)
|
||||
return shared_host_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user