feat(coding-agent/core): changed timeout units to milliseconds in Python tool

- Changed timeout parameter from seconds to milliseconds in Python tool.
- Updated PythonExecutorOptions interface to use timeoutMs instead of timeout.
- Improved streaming output handling by removing async queuing and simplifying buffer management.
- Updated default timeout to 30000ms for Python tool execution.
This commit is contained in:
can1357
2026-01-21 07:52:20 +01:00
parent 9b71036848
commit 62c029b8eb
14 changed files with 54 additions and 62 deletions
@@ -26,7 +26,7 @@ describe("executePythonWithKernel result mapping", () => {
stdinRequested: false,
});
const result = await executePythonWithKernel(kernel, "sleep()", { timeout: 5000 });
const result = await executePythonWithKernel(kernel, "sleep()", { timeoutMs: 5000 });
expect(result.exitCode).toBeUndefined();
expect(result.cancelled).toBe(true);