{"record":{"id":"9d1b86cb66c31912","repo":"paperclipai/paperclip","slug":"git-worktree-base-agent-home","errorCode":"git_worktree_base_agent_home","errorMessage":"Issue ${issueLabel} requested ${input.requestedExecutionWorkspaceMode} with git_worktree, but no project or reusable execution workspace was resolved; refusing to create a git worktree from agent fallback cwd \"${input.base.baseCwd}\". ${remediation}","messagePattern":"Issue (.+?) requested (.+?) with git_worktree, but no project or reusable execution workspace was resolved; refusing to create a git worktree from agent fallback cwd \"(.+?)\"\\. (.+?)","errorType":"validation","errorClass":"WorkspaceValidationFailure","httpStatus":null,"severity":"error","filePath":"server/src/services/heartbeat.ts","lineNumber":2153,"sourceCode":"  effectiveExecutionWorkspaceMode: string | null | undefined;\n  issue: {\n    companyId: string;\n    id?: string | null;\n    projectId?: string | null;\n  } | null;\n  resolveSelectedEnvironmentDriver: () => Promise<string | null | undefined>;\n  resolveWorkspace: () => Promise<TWorkspace>;\n}): Promise<{\n  selectedEnvironmentDriver: string | null;\n  workspace: TWorkspace;\n}> {\n  const selectedEnvironmentDriver = await preflightLowTrustWorkspaceIsolation({\n    db: input.db,\n    trustPreset: input.trustPreset,\n    isolatedWorkspacesEnabled: input.isolatedWorkspacesEnabled,\n    effectiveExecutionWorkspaceMode: input.effectiveExecutionWorkspaceMode,\n    issue: input.issue,\n    resolveSelectedEnvironmentDriver: input.resolveSelectedEnvironmentDriver,\n  });\n\n  return {\n    selectedEnvironmentDriver,\n    workspace: await input.resolveWorkspace(),\n  };\n}\n\nfunction deriveRepoNameFromRepoUrl(repoUrl: string | null): string | null {\n  const trimmed = repoUrl?.trim() ?? \"\";\n  if (!trimmed) return null;\n  try {\n    const parsed = new URL(trimmed);\n    const cleanedPath = parsed.pathname.replace(/\\/+$/, \"\");\n    const repoName =\n      cleanedPath\n        .split(\"/\")\n        .filter(Boolean)","sourceCodeStart":2135,"sourceCodeEnd":2171,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/services/heartbeat.ts#L2135-L2171","documentation":"Error \"Issue ${issueLabel} requested ${input.requestedExecutionWorkspaceMode} with git_worktree, but no project or reusable execution workspace was resolved; refusing to create a git worktree from agent fallback cwd \"${input.base.baseCwd}\". ${remediation}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/services/heartbeat.ts:1985 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Resolve a project or reusable execution workspace for the issue instead of relying on the agent fallback cwd; follow the remediation in the message."],"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-14T05:17:10.506Z"}