π OpenHands: AI-Driven Development
Fix: VSCode using Temp Directory in Nested Mode (#9672)
Tim O'Farrell7fb47761c694
diff --git a/openhands/runtime/impl/local/local_runtime.py b/openhands/runtime/impl/local/local_runtime.pyindex 9ad124aeb5..852cc34aa4 100644--- a/openhands/runtime/impl/local/local_runtime.py+++ b/openhands/runtime/impl/local/local_runtime.py@@ -280,7 +280,10 @@ class LocalRuntime(ActionExecutionClient):shutil.rmtree(server_info.temp_workspace)# Create a new temp workspace for this session- if self._temp_workspace is None:+ if (+ self._temp_workspace is None+ and self.config.workspace_base is None+ ):self._temp_workspace = tempfile.mkdtemp(prefix=f'openhands_workspace_{self.sid}',)