paperclipai/paperclip · error · Error

Could not update assignment ${operation.key}${suffix}

Error message

Could not update assignment ${operation.key}${suffix}

What it means

Error "Could not update assignment ${operation.key}${suffix}" thrown in paperclipai/paperclip.

Source

Thrown at ui/src/pages/tools/profiles/ProfileWizard.tsx:397

      .map((binding) => {
        const input = { targetType: binding.targetType, targetId: binding.targetId } as ToolProfileBindingInput;
        return {
          key: `${binding.targetType}:${binding.targetId}`,
          apply: () => toolsApi.unbindProfile(companyId, profile.id, input),
          rollback: () => toolsApi.bindProfile(companyId, profile.id, input),
        };
      }),
  ];
  const completed: typeof operations = [];
  for (const operation of operations) {
    try {
      await operation.apply();
      completed.push(operation);
    } catch (error) {
      const rollbacks = await Promise.allSettled(completed.reverse().map((done) => done.rollback()));
      const rollbackFailures = rollbacks.filter((result) => result.status === "rejected").length;
      const suffix = rollbackFailures > 0 ? `; ${rollbackFailures} rollback operation(s) also failed` : "";
      throw new Error(`Could not update assignment ${operation.key}${suffix}`, { cause: error });
    }
  }
}

function Stepper({ current }: { current: WizardStep }) {
  return (
    <ol className="flex items-center gap-2 text-sm">
      {STEP_LABELS.map(({ step, label }, idx) => {
        const done = current > step;
        const active = current === step;
        return (
          <li key={step} className="flex items-center gap-2">
            <span
              className={cn(
                "inline-flex h-6 w-6 items-center justify-center rounded-full text-xs font-semibold",
                active && "bg-primary text-primary-foreground",
                done && "bg-primary/20 text-primary",
                !active && !done && "bg-muted text-muted-foreground",

View on GitHub (pinned to 5716fe907e)

Solutions

  1. Retry the assignment update; if it persists, reload the wizard state and reapply the assignment.

When it happens

Trigger: Thrown at ui/src/pages/tools/profiles/ProfileWizard.tsx:396 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of paperclipai/paperclip@5716fe907e (2026-08-18). Data as JSON: /api/errors/776556cc94c097ed. Report an issue: GitHub.