{"record":{"id":"8e5c078e47f5e791","repo":"paperclipai/paperclip","slug":"target-config-input-configpath-does-not-look-li","errorCode":null,"errorMessage":"Target config ${input.configPath} does not look like a worktree-local Paperclip instance. Expected PAPERCLIP_HOME and PAPERCLIP_INSTANCE_ID in the adjacent .env.","messagePattern":"Target config (.+?) does not look like a worktree-local Paperclip instance\\. Expected PAPERCLIP_HOME and PAPERCLIP_INSTANCE_ID in the adjacent \\.env\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/worktree.ts","lineNumber":928,"sourceCode":"    fromDataDir: fromDataDir ?? undefined,\n    fromInstance,\n  });\n  return {\n    configPath,\n    label: configPath,\n  };\n}\n\nexport function resolveWorktreeReseedTargetPaths(input: {\n  configPath: string;\n  rootPath: string;\n}): WorktreeLocalPaths {\n  const envEntries = readPaperclipEnvEntries(resolvePaperclipEnvFile(input.configPath));\n  const homeDir = nonEmpty(envEntries.PAPERCLIP_HOME);\n  const instanceId = nonEmpty(envEntries.PAPERCLIP_INSTANCE_ID);\n\n  if (!homeDir || !instanceId) {\n    throw new Error(\n      `Target config ${input.configPath} does not look like a worktree-local Paperclip instance. Expected PAPERCLIP_HOME and PAPERCLIP_INSTANCE_ID in the adjacent .env.`,\n    );\n  }\n\n  return resolveWorktreeLocalPaths({\n    cwd: input.rootPath,\n    homeDir,\n    instanceId,\n  });\n}\n\nfunction resolveExistingGitWorktree(selector: string, cwd: string): MergeSourceChoice | null {\n  const trimmed = selector.trim();\n  if (trimmed.length === 0) return null;\n\n  const directPath = path.resolve(trimmed);\n  if (existsSync(directPath)) {\n    return {","sourceCodeStart":910,"sourceCodeEnd":946,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/worktree.ts#L910-L946","documentation":"Error \"Target config ${input.configPath} does not look like a worktree-local Paperclip instance. Expected PAPERCLIP_HOME and PAPERCLIP_INSTANCE_ID in the adjacent .env.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at cli/src/commands/worktree.ts:912 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Point --config at a worktree-local Paperclip instance whose adjacent .env defines PAPERCLIP_HOME and PAPERCLIP_INSTANCE_ID."],"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"}