{"record":{"id":"b3bf70a5996d6422","repo":"paperclipai/paperclip","slug":"missing-removal-stage","errorCode":null,"errorMessage":"Missing removal stage","messagePattern":"Missing removal stage","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ui/src/pages/Pipelines.tsx","lineNumber":2648,"sourceCode":"      if (!selectedMoveStage || !detail?.case.version) throw new Error(\"Missing target stage\");\n      return pipelinesApi.transitionCase(caseId, {\n        toStageKey: selectedMoveStage.key,\n        expectedVersion: detail.case.version,\n        reason: `Manual board override from item page: moved from ${detail.stage.name} to ${selectedMoveStage.name}.`,\n        force: true,\n      });\n    },\n    onSuccess: async () => {\n      setMoveDialogOpen(false);\n      setMoveStageKey(\"\");\n      await invalidateItem();\n      pushToast({ title: \"Item moved\", tone: \"success\" });\n    },\n    onError: () => pushToast({ title: \"Could not move the item\", tone: \"error\" }),\n  });\n  const removeItem = useMutation({\n    mutationFn: () => {\n      if (!removeStage || !detail?.case.version) throw new Error(\"Missing removal stage\");\n      return pipelinesApi.transitionCase(caseId, {\n        toStageKey: removeStage.key,\n        expectedVersion: detail.case.version,\n        reason: \"Removed from the item detail page.\",\n      });\n    },\n    onSuccess: async () => {\n      setRemoveDialogOpen(false);\n      await invalidateItem();\n      pushToast({ title: \"Item removed\", tone: \"success\" });\n      navigate(`/pipelines/${pipelineId}`);\n    },\n    onError: () => pushToast({ title: \"Could not remove the item\", tone: \"error\" }),\n  });\n\n  const reviewConfig = useMemo(\n    () => detail ? reviewDecisionConfig(detail.stage, stages) : null,\n    [detail, stages],","sourceCodeStart":2630,"sourceCodeEnd":2666,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/ui/src/pages/Pipelines.tsx#L2630-L2666","documentation":"Error \"Missing removal stage\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at ui/src/pages/Pipelines.tsx:2647 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Select the stage to remove before confirming the removal."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}