fix(update): hand off supervised auto-updates

This commit is contained in:
Vincent Koc
2026-06-06 07:19:40 -07:00
parent 10fb3e110d
commit fc2a7be0bc
7 changed files with 252 additions and 37 deletions
+1 -7
View File
@@ -828,12 +828,6 @@ function gatewayAncestryBlockMessage(pid: unknown): string | undefined {
return isGatewayAncestorPid(pid) ? formatGatewayAncestryBlockMessage(pid) : undefined;
}
function gatewayRuntimeAncestryBlockMessage(
runtime: { pid?: unknown } | null | undefined,
): string | undefined {
return gatewayAncestryBlockMessage(runtime?.pid);
}
function serviceControlStdoutForMode(jsonMode: boolean): NodeJS.WritableStream {
return jsonMode ? JSON_MODE_SERVICE_STDOUT : process.stdout;
}
@@ -900,7 +894,7 @@ async function maybeStopManagedServiceBeforePackageUpdate(params: {
};
}
const blockMessage = gatewayRuntimeAncestryBlockMessage(serviceState.runtime);
const blockMessage = gatewayAncestryBlockMessage(serviceState.runtime?.pid);
if (blockMessage) {
return {
stopped: false,