Merge branch 'main' into pr-820

This commit is contained in:
Re-bin committed 2026-02-19 17:44:30 +00:00
commit 1c51fbeeee
8 files changed
+223 -64

No files matched your search

+6
View File
@@ -82,6 +82,12 @@ class ExecTool(Tool):
)
except asyncio.TimeoutError:
process.kill()
# Wait for the process to fully terminate so pipes are
# drained and file descriptors are released.
try:
await asyncio.wait_for(process.wait(), timeout=5.0)
except asyncio.TimeoutError:
pass
return f"Error: Command timed out after {self.timeout} seconds"
output_parts = []