stream responses and all tests passing

This commit is contained in:
2026-02-21 13:42:32 -07:00
parent 1a894faa59
commit ef2ac2f030
6 changed files with 126 additions and 40 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
import asyncio
async def bash(command: str, sandbox=None) -> str:
"""
Execute a bash command in the sandbox.
@@ -14,7 +17,7 @@ async def bash(command: str, sandbox=None) -> str:
return "Error: Sandbox not available"
try:
result = await sandbox.run(command)
result = await asyncio.to_thread(sandbox.run, command)
return result
except RuntimeError as e: