feat: add v2 task control and asynchronous isolated workers

This commit is contained in:
WHC
2026-10-20 14:46:57 +08:00
parent 143dba203b
commit d971cb02b0
26 changed files with 1590 additions and 66 deletions
+1
View File
@@ -618,6 +618,7 @@ int os_run_capture_token(const char *cwd, const char *const argv[],
n == 0)
break;
os_cap_append(&buf, &len, &cap, max_out, tmp, n, &truncated);
os_observe_output(tmp, n);
idle = 0;
} else if (reaped) {
Sleep(idle++ < 50 ? 1 : 20);