You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(workflows): sandbox timeout can be bypassed after await #285
I've investigated the sandbox execution path and plan to:
Enforce bounded execution timeout across async continuation blocks so synchronous infinite loops after await (e.g. await Promise.resolve(); while (true) {}) fail with a clear timeout error within 1000ms;
Preserve unbounded wall-clock duration for legitimate asynchronous agent calls and I/O;
Ensure terminal timeout evidence is delivered and child process resources are cleaned up;
Add deterministic regression tests in tests/extensions/workflows/sandbox.test.ts covering post-await non-yielding code with safe test-level cleanup.
Please let me know if anyone is already working on it.
I've investigated the sandbox execution path and plan to:
Enforce bounded execution timeout across async continuation blocks so synchronous infinite loops after await (e.g. await Promise.resolve(); while (true) {}) fail with a clear timeout error within 1000ms;
Preserve unbounded wall-clock duration for legitimate asynchronous agent calls and I/O;
Ensure terminal timeout evidence is delivered and child process resources are cleaned up;
Add deterministic regression tests in tests/extensions/workflows/sandbox.test.ts covering post-await non-yielding code with safe test-level cleanup.
Please let me know if anyone is already working on it.
Activity
hasak21 commentedon Aug 29, 2026
Hi! I'd like to work on this issue.
I've investigated the sandbox execution path and plan to:
await(e.g.await Promise.resolve(); while (true) {}) fail with a clear timeout error within 1000ms;tests/extensions/workflows/sandbox.test.tscovering post-await non-yielding code with safe test-level cleanup.Please let me know if anyone is already working on it.
loading2332 commentedon Aug 29, 2026
可以的,你认领吧
fix(workflows): track execution windows across interleaved continuati…
fix(workflows): enforce sandbox execution timeout across async contin…
fix(workflows): enforce sandbox execution timeout across async contin…