paperclipai/paperclip · error · Error
This decision has no linked task to route from.
Error message
This decision has no linked task to route from.
What it means
Error "This decision has no linked task to route from." thrown in paperclipai/paperclip.
Source
Thrown at ui/src/components/DecisionTriageStrip.tsx:126
const setSnooze = useMutation({
mutationFn: (snoozedUntil: string | null) =>
decisionQueuesApi.updateTriage(companyId, sourceKind, sourceId, { snoozedUntil }),
onSuccess: invalidate,
onError: onError("snooze"),
});
const addToQueue = useMutation({
mutationFn: (key: string) => decisionQueuesApi.addItem(companyId, key, sourceKind, sourceId),
onSuccess: invalidate,
onError: onError("add to queue"),
});
const removeFromQueue = useMutation({
mutationFn: (key: string) => decisionQueuesApi.removeItem(companyId, key, sourceKind, sourceId),
onSuccess: invalidate,
onError: onError("remove from queue"),
});
const routeToAgent = useMutation({
mutationFn: (agent: Agent) => {
if (!relatedIssueId) throw new Error("This decision has no linked task to route from.");
const mention = `[@${agent.name}](${buildAgentMentionHref(agent.id)})`;
const body =
`${mention} — could you look at this decision${taskRef ? ` on ${taskRef.identifier}` : ""}, `
+ `prepare a recommendation, and re-surface it on the decisions desk? (routed from the desk)`;
return issuesApi.addComment(relatedIssueId, body);
},
onSuccess: (_result, agent) => {
invalidate();
pushToast({ title: `Asked ${agent.name} for a recommendation`, tone: "success" });
},
onError: onError("ask that agent for a recommendation"),
});
const pending = setDecideBy.isPending || setSnooze.isPending || addToQueue.isPending || removeFromQueue.isPending;
const decideBy = item.decideBy;
const isDatePreset = decideBy != null && /^\d{4}-\d{2}-\d{2}$/.test(decideBy);
return (View on GitHub (pinned to 120ae5428f)
Solutions
- Open the decision from its linked task; if no task is linked, route it from the decision detail view instead.
When it happens
Trigger: Thrown at ui/src/components/DecisionTriageStrip.tsx:126 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/217d8c5bb7a26a1c.
Report an issue: GitHub.