{"record":{"id":"708f44bcc45540ac","repo":"paperclipai/paperclip","slug":"input-label-failed-details","errorCode":null,"errorMessage":"${input.label} failed: ${details}","messagePattern":"(.+?) failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/src/services/workspace-runtime.ts","lineNumber":2842,"sourceCode":"  resolvedCommand?: string;\n  cwd: string;\n  env: NodeJS.ProcessEnv;\n  label: string;\n  onLog?: (stream: \"stdout\" | \"stderr\", chunk: string) => Promise<void>;\n}) {\n  const shell = resolveShell();\n  const proc = await executeProcess({\n    command: shell,\n    args: [\"-c\", input.resolvedCommand ?? input.command],\n    cwd: input.cwd,\n    env: input.env,\n  });\n  if (proc.stdout && input.onLog) await input.onLog(\"stdout\", `[runtime-provision] ${proc.stdout}`);\n  if (proc.stderr && input.onLog) await input.onLog(\"stderr\", `[runtime-provision] ${proc.stderr}`);\n  if (proc.code === 0) return;\n\n  const details = [proc.stderr.trim(), proc.stdout.trim()].filter(Boolean).join(\"\\n\");\n  throw new Error(\n    details.length > 0\n      ? `${input.label} failed: ${details}`\n      : `${input.label} failed with exit code ${proc.code ?? -1}`,\n  );\n}\n\nasync function recordGitOperation(\n  recorder: WorkspaceOperationRecorder | null | undefined,\n  input: {\n    phase: WorkspaceOperationPhase;\n    args: string[];\n    cwd: string;\n    metadata?: Record<string, unknown> | null;\n    successMessage?: string | null;\n    failureLabel?: string | null;\n  },\n): Promise<string> {\n  if (!recorder) {","sourceCodeStart":2824,"sourceCodeEnd":2860,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/server/src/services/workspace-runtime.ts#L2824-L2860","documentation":"A runtime-provision shell command (labelled by input.label) exited non-zero during workspace provisioning. The error aggregates the command's label plus its captured stdout/stderr details so the failing provisioning step is identifiable.","triggerScenarios":"Thrown at server/src/services/workspace-runtime.ts:2788 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The labeled workspace operation failed; inspect the included details for the underlying command error and fix the repository or environment state."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a7e689b3c35347b529cb9f54c9b9a8575a3dcab6","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}