codeburn/windows/src
iamtoruk 6ed5b8f2fd feat(windows): the CLI timeout is a silence, not a stopwatch
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.
2026-09-01 23:44:55 -07:00
..
components feat(windows): the update badge and the CLI update banner in the popover 2026-09-01 22:14:54 -07:00
lib feat(windows): one quota poll on the cadence, for every window that shows one 2026-09-01 23:26:53 -07:00
settings feat(windows): Check for Updates in the tray menu and in About 2026-09-01 22:16:39 -07:00
App.tsx feat(windows): the CLI timeout is a silence, not a stopwatch 2026-09-01 23:44:55 -07:00
dock.css feat(windows): a Connect button and footer lines in the dock bubble 2026-09-01 21:43:07 -07:00
Dock.tsx feat(windows): one quota poll on the cadence, for every window that shows one 2026-09-01 23:26:53 -07:00
dockGeometry.ts feat(windows): the squircle gauge shape 2026-09-01 21:15:12 -07:00
main.tsx feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
providerIcons.tsx feat(windows): provider panes gain config directories, cadence and API keys 2026-09-01 20:00:42 -07:00
Settings.tsx feat(windows): one quota poll on the cadence, for every window that shows one 2026-09-01 23:26:53 -07:00
styles.css feat(windows): the update badge and the CLI update banner in the popover 2026-09-01 22:14:54 -07:00