paperclipai/paperclip · error · Error

Missing removal stage

Error message

Missing removal stage

What it means

Error "Missing removal stage" thrown in paperclipai/paperclip.

Source

Thrown at ui/src/pages/Pipelines.tsx:2648

      if (!selectedMoveStage || !detail?.case.version) throw new Error("Missing target stage");
      return pipelinesApi.transitionCase(caseId, {
        toStageKey: selectedMoveStage.key,
        expectedVersion: detail.case.version,
        reason: `Manual board override from item page: moved from ${detail.stage.name} to ${selectedMoveStage.name}.`,
        force: true,
      });
    },
    onSuccess: async () => {
      setMoveDialogOpen(false);
      setMoveStageKey("");
      await invalidateItem();
      pushToast({ title: "Item moved", tone: "success" });
    },
    onError: () => pushToast({ title: "Could not move the item", tone: "error" }),
  });
  const removeItem = useMutation({
    mutationFn: () => {
      if (!removeStage || !detail?.case.version) throw new Error("Missing removal stage");
      return pipelinesApi.transitionCase(caseId, {
        toStageKey: removeStage.key,
        expectedVersion: detail.case.version,
        reason: "Removed from the item detail page.",
      });
    },
    onSuccess: async () => {
      setRemoveDialogOpen(false);
      await invalidateItem();
      pushToast({ title: "Item removed", tone: "success" });
      navigate(`/pipelines/${pipelineId}`);
    },
    onError: () => pushToast({ title: "Could not remove the item", tone: "error" }),
  });

  const reviewConfig = useMemo(
    () => detail ? reviewDecisionConfig(detail.stage, stages) : null,
    [detail, stages],

View on GitHub (pinned to 01ad858492)

Solutions

  1. Select the stage to remove before confirming the removal.

When it happens

Trigger: Thrown at ui/src/pages/Pipelines.tsx:2647 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18). Data as JSON: /api/errors/b3bf70a5996d6422. Report an issue: GitHub.