Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix org repo deletion to run in runtime (#9319)

Graham Neubig8aeb4dd63294
diff --git a/openhands/runtime/base.py b/openhands/runtime/base.py
index f29b60d183..1e4e5ebe73 100644
--- a/openhands/runtime/base.py
+++ b/openhands/runtime/base.py
@@ -720,7 +720,8 @@ fi
)
# Clean up the org repo directory
- shutil.rmtree(org_repo_dir)
+ action = CmdRunAction(f'rm -rf {org_repo_dir}')
+ self.run_action(action)
else:
self.log(
'info',