{"record":{"id":"2060b8ca5860d224","repo":"paperclipai/paperclip","slug":"project-mapping-cancelled","errorCode":null,"errorMessage":"Project mapping cancelled.","messagePattern":"Project mapping cancelled\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/worktree.ts","lineNumber":3592,"sourceCode":"        },\n        ...(nameMatch\n          ? [{\n              value: nameMatch.id,\n              label: `Map to ${nameMatch.name}`,\n              hint: \"Recommended: exact name match\",\n            }]\n          : []),\n        {\n          value: null,\n          label: \"Leave unset\",\n          hint: \"Keep imported issues without a project\",\n        },\n        ...targetChoices.filter((choice) => choice.value !== nameMatch?.id),\n      ],\n      initialValue: nameMatch?.id ?? null,\n    });\n    if (p.isCancel(selection)) {\n      throw new Error(\"Project mapping cancelled.\");\n    }\n    if (selection === importSelectionValue) {\n      importProjectIds.add(sourceProjectId);\n      continue;\n    }\n    mappings[sourceProjectId] = selection;\n  }\n\n  return {\n    importProjectIds: [...importProjectIds],\n    projectIdOverrides: mappings,\n  };\n}\n\nexport async function worktreeListCommand(opts: WorktreeListOptions): Promise<void> {\n  const choices = toMergeSourceChoices(process.cwd());\n  if (opts.json) {\n    console.log(JSON.stringify(choices, null, 2));","sourceCodeStart":3574,"sourceCodeEnd":3610,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/worktree.ts#L3574-L3610","documentation":"User-abort sentinel during interactive project mapping: the operator cancelled the prompt that decides which target project imported issues map to, so the merge history flow stops instead of guessing a mapping.","triggerScenarios":"Thrown at cli/src/commands/worktree.ts:2777 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the command and complete the project mapping prompt instead of cancelling.","Pass explicit project mapping flags to skip the interactive prompt."],"exampleFix":null,"handlingStrategy":"validation","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-23T08:17:48.524Z"}