Fix LocalRuntime to properly handle existing subprocesses (#8821)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
tofarr
2025-06-02 11:03:48 -06:00
committed by GitHub
parent ab1cdb5b5f
commit 72c24b461c
10 changed files with 320 additions and 167 deletions

View File

@@ -110,6 +110,9 @@ class CLIRuntime(Runtime):
)
logger.info(f'Created temporary workspace at {self._workspace_path}')
# Runtime tests rely on this being set correctly.
self.config.workspace_mount_path_in_sandbox = self._workspace_path
# Initialize runtime state
self._runtime_initialized = False
self.file_editor = OHEditor(workspace_root=self._workspace_path)