fix(update): raise the step-idle watchdog default to 10 minutes

Desktop builds legitimately produce no output for minutes on Windows
(the updater terminal is static until a step completes), so 300s risks
cancelling healthy long steps. 600s keeps the watchdog meaningful for
true stalls while clearing slow builds; HERMES_UPDATE_STEP_IDLE_SECONDS
still overrides. Per Teknium's review.
This commit is contained in:
Teknium
2026-08-26 18:26:42 -07:00
parent 79b8703d00
commit 7a1aafb4e1
+1 -1
View File
@@ -713,7 +713,7 @@ if ($env:HERMES_UPDATE_PIPE_DRAIN_SECONDS) {
# cancellation trigger, never evidence that the process tree is safe to overlap:
# every step is assigned to a private, non-breakaway Windows job and a timed-out
# step is retryable only after that job reports zero active processes.
$script:StepIdleTimeoutSeconds = 300
$script:StepIdleTimeoutSeconds = 600
if ($env:HERMES_UPDATE_STEP_IDLE_SECONDS) {
$parsedIdle = 0
if ([int]::TryParse($env:HERMES_UPDATE_STEP_IDLE_SECONDS, [ref]$parsedIdle) -and $parsedIdle -gt 0) {