Fission-AI/OpenSpec · error · StoreError
store_remove_cancelled
store_remove_cancelled
Error message
Store remove cancelled.
What it means
Sentinel StoreError (store_remove_cancelled) raised by confirmRemove when the user declines the delete confirmation for the store folder. Nothing was removed; it is the interactive-decline counterpart of the --yes requirement.
Solutions
- Re-run openspec store remove <id> and confirm if you really want deletion
- Keep the store if the prompt was declined intentionally
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/commands/store.ts:354 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/a6cd9da2a3bbaaae.
Report an issue: GitHub.
Appendix: source
Thrown at src/commands/store.ts:354
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.',
'store_remove_cancelled',
{
target: 'store.root',
fix: 'Run "openspec store unregister <id>" if you only want to forget the local registration.',
}
);
}
}
function isRegisterIdentityConfirmationError(error: unknown): boolean {
return (
error instanceof StoreError &&
error.diagnostic.code === 'store_register_identity_confirmation_required'
);
}
async function confirmRegisterConversion(error: unknown): Promise<void> {View on GitHub (pinned to 6926ccb18a)