affaan-m/ECC · error · Error

${error.message} Install-state checkpoint also failed: ${che

Error message

${error.message} Install-state checkpoint also failed: ${checkpointError.message}

What it means

Compound failure during applyInstallPlan: the install itself failed, and the emergency attempt to refresh the bridge install-state also failed; the error chains both messages so neither failure is masked.

Source

Thrown at scripts/lib/install/apply.js:469

    }

    finalState = stateWithContentDigests(migration.finalState, appliedPlan);
    if (typeof beforeInstallStateWrite === 'function') {
      beforeInstallStateWrite({ plan: appliedPlan, state: finalState });
    }
    persistInstallState(plan.installStatePath, finalState);
  } catch (error) {
    if (migration.requiresBridgeState) {
      try {
        // The bridge was committed before any writes. Refresh it with hashes of
        // files that now exist so uninstall can remove only bytes this attempt
        // actually installed while preserving user changes.
        persistInstallState(
          plan.installStatePath,
          stateWithContentDigests(migration.bridgeState, appliedPlan)
        );
      } catch (checkpointError) {
        throw new Error(
          `${error.message} Install-state checkpoint also failed: ${checkpointError.message}`,
          { cause: error }
        );
      }
    }
    throw error;
  }
  let antigravityMigrationWarnings = [];
  try {
    const antigravityMigration = cleanupLegacyAntigravityInstall(appliedPlan);
    if (antigravityMigration.detected && !antigravityMigration.complete) {
      antigravityMigrationWarnings = [
        'Legacy Antigravity migration is incomplete. ECC preserved modified, unverifiable, or unmanaged content under .agent; review and move anything you want to keep, then rerun the Antigravity install.',
        ...(Array.isArray(antigravityMigration.warnings) ? antigravityMigration.warnings : []),
      ];
    }
  } catch (error) {
    antigravityMigrationWarnings = [

View on GitHub (pinned to 06c5e118c4)

Solutions

  1. Fix the primary error reported at the start of the message first.
  2. Then repair the install-state: restore it from backup or re-run the installer to rebuild state.
  3. Check disk space and permissions if the checkpoint write failed.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at scripts/lib/install/apply.js:469 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of affaan-m/ECC@06c5e118c4 (2026-08-18). Data as JSON: /api/errors/435ba70634d5efcb. Report an issue: GitHub.