Fission-AI/OpenSpec · error · StoreError

store_remove_confirmation_required

store_remove_confirmation_required

Error message

Pass --yes to delete store files non-interactively.

What it means

Error "Pass --yes to delete store files non-interactively." thrown in Fission-AI/OpenSpec.

Source

Thrown at src/commands/store.ts:337

  });

  if (!confirmed) {
    throw new StoreError(
      'Store setup cancelled.',
      'store_setup_cancelled',
      {
        target: 'store.root',
        fix: 'Rerun setup when you are ready.',
      }
    );
  }
}

async function confirmRemove(id: string, root: string, options: StoreRemoveOptions): Promise<void> {
  if (options.yes) return;

  if (options.json || !isInteractive()) {
    throw new StoreError(
      'Pass --yes to delete store files non-interactively.',
      'store_remove_confirmation_required',
      {
        target: 'store.root',
        fix: `openspec store remove ${id} --yes`,
      }
    );
  }

  const { confirm } = await import('@inquirer/prompts');
  const confirmed = await confirm({
    message: `Delete local store folder ${formatPathForHuman(root)}?`,
    default: false,
  });

  if (!confirmed) {
    throw new StoreError(
      'Store remove cancelled.',

View on GitHub (pinned to 6926ccb18a)

When it happens

Trigger: Thrown at src/commands/store.ts:337 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25). Data as JSON: /api/errors/13185cb39da79c76. Report an issue: GitHub.