{"record":{"id":"13185cb39da79c76","repo":"Fission-AI/OpenSpec","slug":"store-remove-confirmation-required","errorCode":"store_remove_confirmation_required","errorMessage":"Pass --yes to delete store files non-interactively.","messagePattern":"Pass --yes to delete store files non-interactively\\.","errorType":"exception","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/commands/store.ts","lineNumber":337,"sourceCode":"  });\n\n  if (!confirmed) {\n    throw new StoreError(\n      'Store setup cancelled.',\n      'store_setup_cancelled',\n      {\n        target: 'store.root',\n        fix: 'Rerun setup when you are ready.',\n      }\n    );\n  }\n}\n\nasync function confirmRemove(id: string, root: string, options: StoreRemoveOptions): Promise<void> {\n  if (options.yes) return;\n\n  if (options.json || !isInteractive()) {\n    throw new StoreError(\n      'Pass --yes to delete store files non-interactively.',\n      'store_remove_confirmation_required',\n      {\n        target: 'store.root',\n        fix: `openspec store remove ${id} --yes`,\n      }\n    );\n  }\n\n  const { confirm } = await import('@inquirer/prompts');\n  const confirmed = await confirm({\n    message: `Delete local store folder ${formatPathForHuman(root)}?`,\n    default: false,\n  });\n\n  if (!confirmed) {\n    throw new StoreError(\n      'Store remove cancelled.',","sourceCodeStart":319,"sourceCodeEnd":355,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/commands/store.ts#L319-L355","documentation":"Confirmation guard in confirmRemove: store removal would delete files, and with --json or a non-interactive session the confirm prompt cannot run, so --yes is required to proceed non-interactively. Sentinel StoreError (store_remove_confirmation_required).","triggerScenarios":"Thrown at src/commands/store.ts:337 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run openspec store remove <id> --yes","Run interactively and confirm the deletion prompt"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","contentChangedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}