{"record":{"id":"46d8476d034e15ab","repo":"paperclipai/paperclip","slug":"import-cancelled","errorCode":null,"errorMessage":"Import cancelled.","messagePattern":"Import cancelled\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"cli/src/commands/client/company.ts","lineNumber":1842,"sourceCode":"                targetLabel: formatTargetLabel(targetPayload, preview),\n                infoMessages: adapterMessages,\n              }),\n              { interactive: interactiveView },\n            );\n          }\n\n          const confirmationMode = resolveCompanyImportApplyConfirmationMode({\n            yes: opts.yes,\n            interactive: interactiveView,\n            json: ctx.json,\n          });\n          if (confirmationMode === \"prompt\") {\n            const confirmed = await p.confirm({\n              message: \"Apply this import? (y/N)\",\n              initialValue: false,\n            });\n            if (p.isCancel(confirmed) || !confirmed) {\n              p.log.warn(\"Import cancelled.\");\n              return;\n            }\n          }\n\n          const importApiPath = resolveCompanyImportApiPath({\n            dryRun: false,\n            targetMode: targetPayload.mode,\n            companyId: targetPayload.mode === \"existing_company\" ? targetPayload.companyId : null,\n          });\n          const imported = transferId\n            ? await ctx.api.post<CompanyPortabilityImportResult>(\n                `/api/companies${companyImportTransferApplyPath(transferId)}`,\n                { ...transferMeta, selectedFiles, adapterOverrides },\n              )\n            : await ctx.api.post<CompanyPortabilityImportResult>(importApiPath, {\n                ...previewPayload,\n                adapterOverrides,\n              });","sourceCodeStart":1824,"sourceCodeEnd":1860,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L1824-L1860","documentation":"Informational warning from the paperclipai company-import command. The apply step only runs after a clack p.confirm prompt; when the user answers 'N' or cancels (p.isCancel), the CLI logs 'Import cancelled.' and returns before any POST to the import apply endpoint. No mutation was applied — only the preview request ran.","triggerScenarios":"Running `paperclipai company import ...` in interactive mode (confirmationMode === \"prompt\", i.e. no --yes, TTY present, non-JSON), then declining or Ctrl-C cancelling at the 'Apply this import? (y/N)' prompt.","commonSituations":"User reviews the rendered import preview and decides against applying; a script runs the command without --yes in a TTY and gets the prompt; accidental Escape/Ctrl-C during the prompt.","solutions":["Re-run the import command and answer 'y' at the prompt to apply.","For automation, pass --yes (or run with --json, where the prompt is skipped) so confirmationMode is not 'prompt'."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pass --yes (or --json) when running company import from scripts so the interactive prompt never appears.","Exit code stays 0 on cancel — check output/exit semantics if your script must distinguish applied vs declined.","Use --dry-run first when unsure; declining at apply leaves zero side effects."],"tags":["cli","import","confirmation","user-cancelled","company-portability"],"backgroundTag":"cli-confirmation-cancelled","analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}