paperclipai/paperclip · error · Error
Choose an existing workspace before saving this stage.
Error message
Choose an existing workspace before saving this stage.
What it means
Error "Choose an existing workspace before saving this stage." thrown in paperclipai/paperclip.
Source
Thrown at ui/src/pages/PipelineSettings.tsx:1778
}, [pipeline]);
const refreshPipeline = async () => {
if (!pipelineId) return;
await queryClient.invalidateQueries({ queryKey: queryKeys.pipelines.detail(pipelineId) });
await queryClient.invalidateQueries({ queryKey: queryKeys.pipelines.intakeForm(pipelineId) });
await queryClient.invalidateQueries({ queryKey: queryKeys.pipelines.health(pipelineId) });
};
const saveStage = useMutation({
mutationFn: async () => {
if (!pipelineId || !selectedStage || !pipeline) return null;
if (
stageProjectId &&
selectedProjectSupportsExecutionWorkspace &&
stageExecutionWorkspacePreference === "reuse_existing" &&
!stageExecutionWorkspaceId
) {
throw new Error("Choose an existing workspace before saving this stage.");
}
const parsedApproval = parseApprovalValue(selectedApproval);
const nextRequiresApproval = stageKind === "review";
const config: StageConfig = {
...stageConfig(selectedStage),
variables: stripVariablesByName(instructionsVariables, resolvedAutomationVariableKeys),
disabled: newEntriesDisabled,
disabledReason: newEntriesDisabled ? disableReason.trim() || null : null,
automation: buildStageAutomationForSave({
assigneeAgentId: stageAssigneeAgentId,
titleTemplate: issueTitleTemplate,
instructionsBody,
projectId: stageProjectId,
projectWorkspaceId: stageProjectWorkspaceId,
executionWorkspaceId: stageExecutionWorkspaceId,
executionWorkspacePreference: stageExecutionWorkspacePreference,
executionWorkspaceSettings: currentAutomationExecutionWorkspaceSettings,
}),View on GitHub (pinned to 120ae5428f)
Solutions
- Choose an existing workspace for the stage before saving.
When it happens
Trigger: Thrown at ui/src/pages/PipelineSettings.tsx:1778 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/6f9c572a3a0c82b3.
Report an issue: GitHub.