{"record":{"id":"7c05882ac86b8cfa","repo":"paperclipai/paperclip","slug":"import-cancelled-7c0588","errorCode":null,"errorMessage":"Import cancelled.","messagePattern":"Import cancelled\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"cli/src/commands/worktree.ts","lineNumber":4220,"sourceCode":"\n    console.log(renderMergePlan(collected.plan, {\n      sourcePath: `${sourceEndpoint.label} (${sourceEndpoint.rootPath})`,\n      targetPath: `${targetEndpoint.label} (${targetEndpoint.rootPath})`,\n      unsupportedRunCount: collected.unsupportedRunCount,\n    }));\n\n    if (!opts.apply) {\n      return;\n    }\n\n    const confirmed = opts.yes\n      ? true\n      : await p.confirm({\n        message: `Import ${collected.plan.counts.issuesToInsert} issues and ${collected.plan.counts.commentsToInsert} comments from ${sourceEndpoint.label} into ${targetEndpoint.label}?`,\n        initialValue: false,\n      });\n    if (p.isCancel(confirmed) || !confirmed) {\n      p.log.warn(\"Import cancelled.\");\n      return;\n    }\n\n    const applied = await applyMergePlan({\n      sourceStorages,\n      targetStorage,\n      targetDb: targetHandle.db,\n      company,\n      plan: collected.plan,\n    });\n    if (applied.skippedMissingAttachmentObjects > 0) {\n      p.log.warn(\n        `Skipped ${applied.skippedMissingAttachmentObjects} attachments whose source files were missing from storage.`,\n      );\n    }\n    p.outro(\n      pc.green(\n        `Imported ${applied.insertedProjects} projects (${applied.insertedProjectWorkspaces} workspaces), ${applied.insertedIssues} issues, ${applied.insertedComments} comments, ${applied.insertedDocuments} documents (${applied.insertedDocumentRevisions} revisions, ${applied.mergedDocuments} merged), and ${applied.insertedAttachments} attachments into ${company.issuePrefix}.`,","sourceCodeStart":4202,"sourceCodeEnd":4238,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/cli/src/commands/worktree.ts#L4202-L4238","documentation":"Informational warning from `paperclipai worktree import`: after collecting and displaying the merge plan, the apply step requires opts.apply plus a confirmation. When the user declines or cancels the p.confirm ('Import N issues and M comments from X into Y?'), the CLI returns before applyMergePlan — nothing was written to the target database.","triggerScenarios":"Running worktree import with --apply in a TTY without --yes, then answering 'N' or cancelling (Ctrl-C/Escape) at the import confirmation prompt.","commonSituations":"Reviewing the plan counts and aborting; scripts that pass --apply but not --yes and hit the interactive prompt.","solutions":["Re-run and confirm with 'y' to actually apply the plan.","Add --yes to the command for non-interactive automation (it forces confirmed = true)."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pass --yes together with --apply for automated worktree imports.","Remember the target DB is untouched on cancel — rerun when ready.","Use the printed plan counts to pre-validate the import size before prompting."],"tags":["cli","worktree","import","confirmation","user-cancelled"],"backgroundTag":"cli-confirmation-cancelled","analyzedSha":"a7e689b3c35347b529cb9f54c9b9a8575a3dcab6","analyzedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}