{"record":{"id":"8aaf51b689995555","repo":"paperclipai/paperclip","slug":"reseed-cancelled","errorCode":null,"errorMessage":"Reseed cancelled.","messagePattern":"Reseed cancelled\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"cli/src/commands/worktree.ts","lineNumber":4320,"sourceCode":"  const targetPaths = resolveWorktreeReseedTargetPaths({\n    configPath: targetEndpoint.configPath,\n    rootPath: targetEndpoint.rootPath,\n  });\n  const runningTargetPid = resolveRunningEmbeddedPostgresPid(targetConfig);\n  if (runningTargetPid && !opts.allowLiveTarget) {\n    throw new Error(\n      `Target worktree database appears to be running (pid ${runningTargetPid}). Stop Paperclip in ${targetEndpoint.rootPath} before reseeding, or re-run with --allow-live-target if you want to override this guard.`,\n    );\n  }\n\n  const confirmed = opts.yes\n    ? true\n    : await p.confirm({\n      message: `Overwrite the isolated Paperclip DB for ${targetEndpoint.label} from ${source.label} using ${seedMode} seed mode?`,\n      initialValue: false,\n    });\n  if (p.isCancel(confirmed) || !confirmed) {\n    p.log.warn(\"Reseed cancelled.\");\n    return;\n  }\n\n  if (runningTargetPid && opts.allowLiveTarget) {\n    p.log.warning(`Proceeding even though the target embedded PostgreSQL appears to be running (pid ${runningTargetPid}).`);\n  }\n\n  const spinner = p.spinner();\n  spinner.start(`Reseeding ${targetEndpoint.label} from ${source.label} (${seedMode})...`);\n  const markers = resolveWorktreeSeedMarkerPaths(targetEndpoint.configPath);\n  mkdirSync(path.dirname(markers.lock), { recursive: true });\n  const releaseSeedLock = await acquireWorktreeSeedLock(markers.lock);\n  try {\n    let targetBackupSummary: string | null = null;\n    if (opts.backupTarget) {\n      targetBackupSummary = await backupWorktreeReseedTarget({ targetConfig, targetPaths });\n      p.log.message(pc.dim(`Recoverable pre-repair backup: ${targetBackupSummary}`));\n    }","sourceCodeStart":4302,"sourceCodeEnd":4338,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/cli/src/commands/worktree.ts#L4302-L4338","documentation":"Informational warning from `paperclipai worktree reseed`: reseeding overwrites the target worktree's isolated Paperclip database, so it asks 'Overwrite the isolated Paperclip DB for X from Y using Z seed mode?'. If the user declines or cancels the p.confirm (and --yes was not passed), the command returns before seedWorktreeDatabase — the target DB is untouched.","triggerScenarios":"Running `paperclipai worktree reseed` in a TTY without --yes, then answering 'N' or cancelling at the overwrite confirmation prompt.","commonSituations":"User backs out after seeing the seed-mode in the prompt; scripted invocation missing --yes.","solutions":["Re-run and confirm with 'y' if you want the reseed to proceed.","Pass --yes for non-interactive runs (it skips the prompt entirely)."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pass --yes for scripted reseeds.","Confirm the target endpoint/label in the prompt matches the worktree you intend to overwrite.","Remember the guard also refuses while the target embedded Postgres is running — stop it first."],"tags":["cli","worktree","reseed","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"}