feat(preview): keep review sessions alive (#2384)

* feat(preview): keep review sessions alive

* fix(preview): harden background lifecycle state

* refactor(preview): satisfy lifecycle quality gate
This commit is contained in:
Miguel Ángel
2026-07-13 22:55:19 -04:00
committed by GitHub
parent 4495cb7355
commit 2a7a5e6236
8 changed files with 597 additions and 5 deletions
+5 -1
View File
@@ -97,6 +97,7 @@ export async function testPortOnAllHosts(
interface HyperframesConfigResponse {
isHyperframes: boolean;
pid?: number;
projectName: string;
projectDir: string;
serverBuildSignature?: string | null;
@@ -278,7 +279,10 @@ export async function scanActiveServers(startPort = 3002): Promise<ActiveServer[
ports.map(async (port) => {
const config = await probePort(port);
if (!config) return null;
const pid = await getProcessOnPort(port);
const pid =
Number.isInteger(config.pid) && Number(config.pid) > 0
? String(config.pid)
: await getProcessOnPort(port);
return {
port,
projectName: config.projectName,