{"record":{"id":"ed93eccbb255ef8f","repo":"paperclipai/paperclip","slug":"refusing-to-delete-without-yes-ed93ec","errorCode":null,"errorMessage":"Refusing to delete without --yes","messagePattern":"Refusing to delete without --yes","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/issue.ts","lineNumber":250,"sourceCode":"        try {\n          const ctx = resolveCommandContext(opts);\n          const row = await ctx.api.get<Issue>(apiPath`/api/issues/${idOrIdentifier}`);\n          printOutput(row, { json: ctx.json });\n        } catch (err) {\n          handleCommandError(err);\n        }\n      }),\n  );\n\n  addCommonClientOptions(\n    issue\n      .command(\"delete\")\n      .description(\"Delete an issue\")\n      .argument(\"<issueId>\", \"Issue ID\")\n      .option(\"--yes\", \"Confirm deletion\")\n      .action(async (issueId: string, opts: IssueDeleteOptions) => {\n        try {\n          if (!opts.yes) throw new Error(\"Refusing to delete without --yes\");\n          const ctx = resolveCommandContext(opts);\n          const deleted = await ctx.api.delete<Issue>(apiPath`/api/issues/${issueId}`);\n          printOutput(deleted, { json: ctx.json });\n        } catch (err) {\n          handleCommandError(err);\n        }\n      }),\n  );\n\n  addCommonClientOptions(\n    issue\n      .command(\"heartbeat-context\")\n      .description(\"Get heartbeat context for an issue\")\n      .argument(\"<issueId>\", \"Issue ID\")\n      .action(async (issueId: string, opts: BaseClientOptions) => {\n        try {\n          const ctx = resolveCommandContext(opts);\n          const context = await ctx.api.get(apiPath`/api/issues/${issueId}/heartbeat-context`);","sourceCodeStart":232,"sourceCodeEnd":268,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/cli/src/commands/client/issue.ts#L232-L268","documentation":"Issue delete's action handler refuses to run without the --yes safety flag; a pre-flight guard before the DELETE request.","triggerScenarios":"Thrown at cli/src/commands/client/issue.ts:249 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the issue deletion with --yes to confirm."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}