mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
A flat 60 s wall-clock timeout cannot tell a wedged child from a slow one. It killed a first parse of a large corpus, which is the run that most needs to finish, and it waited a full minute on a child that had died on its feet. Port of CLIWatchdog.swift. Every read spawn now sets CODEBURN_PROGRESS=1, under which the CLI's parser writes a keepalive line every 10 s for the whole of a scan, so silence means something: 45 s of it stops the child, with the mac's ten-minute cold budget until one payload has come back, and a fifteen-minute ceiling for a child that chatters forever without finishing. Every byte on either pipe restarts the clock, which is why both are drained in chunks now rather than read to the end. Progress lines are stripped from stderr before it can become the error a window shows. The stop is asked for first: Ctrl+Break to the child's own process group, which is what a console process has here instead of SIGTERM and which node delivers as SIGBREAK, so the CLI unlinks its own refresh lock on the way out. Only a child that ignores it inside five seconds is killed. The kill is taskkill /T, because what this app spawns is codeburn.cmd and the process doing the work is node, a generation below: killing the handle we hold ends the shim and orphans the parse. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||