fix: detect legacy gateway launchd labels

This commit is contained in:
Peter Steinberger
2026-01-30 05:01:46 +01:00
parent b9afa3d33f
commit 151ddd624b
2 changed files with 14 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "openclaw",
"version": "2026.1.29-beta.6",
"version": "2026.1.29-beta.7",
"description": "WhatsApp gateway CLI (Baileys web) with Pi RPC agent",
"type": "module",
"main": "dist/index.js",

View File

@@ -147,8 +147,20 @@ async function scanLaunchdDir(params: {
continue;
}
const marker = detectMarker(contents);
if (!marker) continue;
const label = tryExtractPlistLabel(contents) ?? labelFromName;
if (!marker) {
const legacyLabel = isLegacyLabel(labelFromName) || isLegacyLabel(label);
if (!legacyLabel) continue;
results.push({
platform: "darwin",
label,
detail: `plist: ${fullPath}`,
scope: params.scope,
marker: isLegacyLabel(label) ? "clawdbot" : "moltbot",
legacy: true,
});
continue;
}
if (isIgnoredLaunchdLabel(label)) continue;
if (marker === "openclaw" && isOpenClawGatewayLaunchdService(label, contents)) continue;
results.push({