{"record":{"id":"530d982274d1f16d","repo":"paperclipai/paperclip","slug":"pass-from-worktree-or-from-config-from-ins","errorCode":null,"errorMessage":"Pass --from <worktree> or --from-config/--from-instance explicitly so the reseed source is unambiguous.","messagePattern":"Pass --from <worktree> or --from-config/--from-instance explicitly so the reseed source is unambiguous\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/worktree.ts","lineNumber":899,"sourceCode":"    return {\n      configPath: endpoint.configPath,\n      label: endpoint.label,\n    };\n  }\n\n  if (hasExplicitConfigSource) {\n    const configPath = resolveSourceConfigPath({\n      fromConfig: fromConfig ?? undefined,\n      fromDataDir: fromDataDir ?? undefined,\n      fromInstance: fromInstance ?? undefined,\n    });\n    return {\n      configPath,\n      label: configPath,\n    };\n  }\n\n  throw new Error(\n    \"Pass --from <worktree> or --from-config/--from-instance explicitly so the reseed source is unambiguous.\",\n  );\n}\n\nfunction resolveWorktreeRepairSource(input: WorktreeRepairOptions): ResolvedWorktreeReseedSource {\n  const fromConfig = nonEmpty(input.fromConfig);\n  const fromDataDir = nonEmpty(input.fromDataDir);\n  const fromInstance = nonEmpty(input.fromInstance) ?? \"default\";\n  const configPath = resolveSourceConfigPath({\n    fromConfig: fromConfig ?? undefined,\n    fromDataDir: fromDataDir ?? undefined,\n    fromInstance,\n  });\n  return {\n    configPath,\n    label: configPath,\n  };\n}","sourceCodeStart":881,"sourceCodeEnd":917,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/worktree.ts#L881-L917","documentation":"Ambiguity guard in reseed source resolution: no --from worktree and no explicit config-source flag was given, and the default resolution was not unambiguous, so the command refuses to guess which instance to copy data from.","triggerScenarios":"Thrown at cli/src/commands/worktree.ts:883 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --from <worktree> or --from-config/--from-instance explicitly to identify the reseed source."],"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"}