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
+3 -3
View File
@@ -30,12 +30,12 @@ class PodmanSandbox:
)
return self
async def run(self, command: str) -> str:
def run(self, command: str) -> str:
"""Execute command in microVM/"""
exit_code, output = self.container.exec_run(
["/bin/sh", "-c", command], workdir="/workspace"
["/bin/sh", "-c", command], workdir="/workspace", demux=False
)
return output.decode()
return output.decode("utf-8", errors="replace")
async def __aexit__(self, *args):
if self.container: