mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
fix: stop the desktop status-timeout loop (#1644)
Some checks failed
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
macOS Menubar CI / test (push) Has been cancelled
Windows Menubar CI / check (ubuntu-latest) (push) Has been cancelled
Windows Menubar CI / check (windows-latest) (push) Has been cancelled
Some checks failed
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
macOS Menubar CI / test (push) Has been cancelled
Windows Menubar CI / check (ubuntu-latest) (push) Has been cancelled
Windows Menubar CI / check (windows-latest) (push) Has been cancelled
The desktop serve client counted every death, watchdog kills included, against a 3-death budget that never reset, so three sporadic kills over an app run disabled serve for good. The budget now resets on any healthy answer: three generations in a row that never answer still disable it. One-shot CLI runs only heartbeated inside a parse, so a run waiting on another process's cold hydration lock (up to 10 min) went silent and was killed at 45s on every poll. Start the keepalive at command entry.
This commit is contained in:
parent
75eff6e704
commit
bd88b89988
4 changed files with 83 additions and 3 deletions
|
|
@ -3239,6 +3239,12 @@ if (process.argv[2] === 'serve') {
|
|||
// this child running as an orphan for as long as the machine is up.
|
||||
hardExit(0)
|
||||
} else {
|
||||
// Beat for the app watchdogs from the first moment, not just inside a parse:
|
||||
// a one-shot is also silent while it waits on another process's cold
|
||||
// hydration lock or aggregates after the parse. Never stopped; the timer is
|
||||
// unref'd and the process exits when the command does. Serve beats per
|
||||
// request instead, so it must not take this.
|
||||
startProgressKeepalive()
|
||||
const program = buildProgram()
|
||||
await registerLoadedPluginCommands(program)
|
||||
program.parse()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue