different-ai/openwork · error

Target update manifest did not resolve to v${targetVersion}.

Error message

Target update manifest did not resolve to v${targetVersion}.

What it means

Error "Target update manifest did not resolve to v${targetVersion}." thrown in different-ai/openwork.

Source

Thrown at apps/desktop/electron/updater.mjs:642

      : normalizeElectronUpdaterChannel(rawChannel, manifestChannel);
    const updater = await ensureAutoUpdater();
    try {
      const targetVersion = rawTargetVersion === undefined
        ? null
        : normalizeStableTargetVersion(rawTargetVersion);
      if (rawTargetVersion !== undefined && !targetVersion) {
        throw new Error("Target update version must use the stable x.y.z format.");
      }
      const channelState = updater
        ? await applyElectronUpdaterFeed(app, updater, targetVersion, manifestChannel, false, channel)
        : updaterChannelState(app, channel, targetVersion, manifestChannel);
      if (!updater) return { available: false, reason: "unavailable", ...channelState };

      const result = await updater.checkForUpdates();
      const info = result?.updateInfo ?? null;
      const currentVersion = resolveAppVersion(app);
      if (targetVersion && compareVersions(info?.version ?? "", targetVersion) !== 0) {
        throw new Error(`Target update manifest did not resolve to v${targetVersion}.`);
      }
      const available = Boolean(info?.version && isVersionNewer(info.version, currentVersion));
      checkedUpdateVersion = available ? info.version : null;
      checkedUpdateTargetVersion = available ? targetVersion : null;
      checkedUpdateChannel = available ? channelState.channel : null;
      if (!available) updateDownloaded = false;
      return {
        available,
        currentVersion,
        latestVersion: targetVersion ?? info?.version ?? null,
        releaseDate: info?.releaseDate ?? null,
        releaseNotes: info?.releaseNotes ?? null,
        ...channelState,
      };
    } catch (error) {
      checkedUpdateVersion = null;
      checkedUpdateTargetVersion = null;
      checkedUpdateChannel = null;

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at apps/desktop/electron/updater.mjs:642 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/711a8613b32411fd. Report an issue: GitHub.