different-ai/openwork · error

Healthy app version must use the stable x.y.z format.

Error message

Healthy app version must use the stable x.y.z format.

What it means

Error "Healthy app version must use the stable x.y.z format." thrown in different-ai/openwork.

Source

Thrown at apps/desktop/electron/recovery.mjs:46

  return path.join(app.getPath("userData"), RECOVERY_STATE_FILENAME);
}

export async function readRecoveryState(app, distribution) {
  try {
    const parsed = JSON.parse(await readFile(statePath(app), "utf8"));
    if (parsed?.distribution !== distribution) return { currentVersion: null, previousVersion: null };
    return {
      currentVersion: stableVersion(parsed.currentVersion),
      previousVersion: stableVersion(parsed.previousVersion),
    };
  } catch {
    return { currentVersion: null, previousVersion: null };
  }
}

export async function recordHealthyVersion(app, distribution, rawVersion) {
  const version = stableVersion(rawVersion);
  if (!version) throw new Error("Healthy app version must use the stable x.y.z format.");
  const previous = await readRecoveryState(app, distribution);
  const state = {
    distribution,
    currentVersion: version,
    previousVersion: previous.currentVersion && previous.currentVersion !== version
      ? previous.currentVersion
      : previous.previousVersion,
    writtenAt: new Date().toISOString(),
  };
  const outputPath = statePath(app);
  await mkdir(path.dirname(outputPath), { recursive: true });
  const temporaryPath = `${outputPath}.${process.pid}.tmp`;
  await writeFile(temporaryPath, `${JSON.stringify(state, null, 2)}\n`, "utf8");
  await rename(temporaryPath, outputPath);
  return state;
}

export function recoveryManifestName(platform, arch, distribution) {

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at apps/desktop/electron/recovery.mjs:46 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01). Data as JSON: /api/errors/294793ebe17fb34f. Report an issue: GitHub.