fix: unblock launchctl stub on windows

This commit is contained in:
Peter Steinberger
2026-01-15 03:58:26 +00:00
parent 574b6ab5b1
commit 1732932c57
4 changed files with 5 additions and 10 deletions

View File

@@ -146,8 +146,7 @@ export function registerBrowserAgentSnapshotRoutes(app: express.Express, ctx: Br
const labels = toBoolean(req.query.labels) ?? undefined;
const explicitFormat =
req.query.format === "aria" ? "aria" : req.query.format === "ai" ? "ai" : undefined;
const format =
explicitFormat ?? (mode ? "ai" : (await getPwAiModule()) ? "ai" : "aria");
const format = explicitFormat ?? (mode ? "ai" : (await getPwAiModule()) ? "ai" : "aria");
const limitRaw = typeof req.query.limit === "string" ? Number(req.query.limit) : undefined;
const hasMaxChars = Object.hasOwn(req.query, "maxChars");
const maxCharsRaw =