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:59:23 +01:00
parent 9b71036848
commit 62c029b8eb
14 changed files with 54 additions and 62 deletions
@@ -17,7 +17,7 @@ class FakeKernel implements PythonKernelExecutor {
describe("executePythonWithKernel mapping", () => {
it("annotates timeout cancellations", async () => {
const kernel = new FakeKernel({ status: "ok", cancelled: true, timedOut: true, stdinRequested: false });
const result = await executePythonWithKernel(kernel, "sleep(10)", { timeout: 5000 });
const result = await executePythonWithKernel(kernel, "sleep(10)", { timeoutMs: 5000 });
expect(result.cancelled).toBe(true);
expect(result.exitCode).toBeUndefined();