π OpenHands: AI-Driven Development
fix freeze on zip-files endpoint (#4487)
Robert Brennancc68756b262d
diff --git a/openhands/server/listen.py b/openhands/server/listen.pyindex 8a87b29b06..34ac732f57 100644--- a/openhands/server/listen.py+++ b/openhands/server/listen.py@@ -741,7 +741,7 @@ async def zip_current_workspace(request: Request):runtime: Runtime = request.state.conversation.runtimepath = runtime.config.workspace_mount_path_in_sandbox- zip_file_bytes = runtime.copy_from(path)+ zip_file_bytes = await call_sync_from_async(runtime.copy_from, path)zip_stream = io.BytesIO(zip_file_bytes) # Wrap to behave like a file streamresponse = StreamingResponse(zip_stream,