Retry GPU wake when the LAN proxy is stale after idle-stop.

Idle-stop was leaving /status claiming Comfy was healthy, so the studio skipped start and failed on a dead 8198 instead of waking the GPU.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-01 08:17:42 -05:00
co-authored by Cursor
parent 29184961c4
commit d80a44cc2d
2 changed files with 4 additions and 7 deletions
+1 -7
View File
@@ -350,13 +350,7 @@ async function ensureUnlocked(onStatus: StatusFn, skipBusyWait = false) {
onStatus({ state: 'online', message: 'ComfyUI online', host: proxyUrl, processRunning: true })
return
}
}
if (remote?.http) {
const localPort = remote.port ? ` Port ${remote.port} is healthy on the desktop.` : ''
throw createError({
statusCode: 503,
statusMessage: `Comfy is running on the desktop but this server cannot reach ${host}.${localPort} Check COMFY_HOST / the LAN proxy.`
})
log('http-fail-proxy', { host: proxyUrl, localPort: remote.port || null })
}
const running = await processRunning()
if (running) {