{"record":{"id":"f067251faf886158","repo":"paperclipai/paperclip","slug":"source-config-not-found-at-source-configpath","errorCode":null,"errorMessage":"Source config not found at ${source.configPath}.","messagePattern":"Source config not found at (.+?)\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/worktree.ts","lineNumber":4256,"sourceCode":"  }\n}\n\nasync function runWorktreeReseed(opts: WorktreeReseedOptions): Promise<void> {\n  const seedMode = opts.seedMode ?? \"full\";\n  if (!isWorktreeSeedMode(seedMode)) {\n    throw new Error(`Unsupported seed mode \"${seedMode}\". Expected one of: minimal, full.`);\n  }\n\n  const targetEndpoint = opts.to\n    ? resolveWorktreeEndpointFromSelector(opts.to, { allowCurrent: true })\n    : resolveCurrentWorktreeEndpoint();\n  const source = resolveWorktreeReseedSource(opts);\n\n  if (path.resolve(source.configPath) === path.resolve(targetEndpoint.configPath)) {\n    throw new Error(\"Source and target Paperclip configs are the same. Choose different --from/--to values.\");\n  }\n  if (!existsSync(source.configPath)) {\n    throw new Error(`Source config not found at ${source.configPath}.`);\n  }\n\n  const targetConfig = readConfig(targetEndpoint.configPath);\n  if (!targetConfig) {\n    throw new Error(`Target config not found at ${targetEndpoint.configPath}.`);\n  }\n  const sourceConfig = readConfig(source.configPath);\n  if (!sourceConfig) {\n    throw new Error(`Source config not found at ${source.configPath}.`);\n  }\n\n  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(","sourceCodeStart":4238,"sourceCodeEnd":4274,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/worktree.ts#L4238-L4274","documentation":"Source-existence guard in worktree reseed: the resolved source config file does not exist on disk, so there is no source instance to read seed data from; the --from/--from-config value is likely wrong.","triggerScenarios":"Thrown at cli/src/commands/worktree.ts:3413 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct --from so it points at a worktree containing a Paperclip config.","Initialize the source worktree before merging."],"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"}