{"record":{"id":"7e716cde05813c73","repo":"paperclipai/paperclip","slug":"input-failurelabel-git-input-args-join","errorCode":null,"errorMessage":"${input.failureLabel ?? `git ${input.args.join(\" \")}`} failed: ${details}","messagePattern":"(.+?)`\\} failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/src/services/workspace-runtime.ts","lineNumber":2902,"sourceCode":"        stdout: result.stdout,\n        stderr: result.stderr,\n        system: result.code === 0 ? input.successMessage ?? null : null,\n        metadata:\n          result.stdoutTruncated || result.stderrTruncated\n            ? {\n                stdoutTruncated: result.stdoutTruncated,\n                stderrTruncated: result.stderrTruncated,\n                stdoutBytes: result.stdoutBytes,\n                stderrBytes: result.stderrBytes,\n              }\n            : null,\n      };\n    },\n  });\n\n  if (code !== 0) {\n    const details = [stderr.trim(), stdout.trim()].filter(Boolean).join(\"\\n\");\n    throw new Error(\n      details.length > 0\n        ? `${input.failureLabel ?? `git ${input.args.join(\" \")}`} failed: ${details}`\n        : `${input.failureLabel ?? `git ${input.args.join(\" \")}`} failed with exit code ${code ?? -1}`,\n    );\n  }\n  return stdout.trim();\n}\n\nasync function recordWorkspaceCommandOperation(\n  recorder: WorkspaceOperationRecorder | null | undefined,\n  input: {\n    phase: \"workspace_provision\" | \"workspace_seed\" | \"workspace_runtime_provision\" | \"workspace_teardown\";\n    command: string;\n    resolvedCommand?: string;\n    cwd: string;\n    env: NodeJS.ProcessEnv;\n    label: string;\n    metadata?: Record<string, unknown> | null;","sourceCodeStart":2884,"sourceCodeEnd":2920,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/server/src/services/workspace-runtime.ts#L2884-L2920","documentation":"A workspace git operation wrapper recorded a failed git step: the subprocess exited non-zero and the error combines the failureLabel (or git command line) with trimmed stderr/stdout details. Generic failure signal for workspace git maintenance commands.","triggerScenarios":"Thrown at server/src/services/workspace-runtime.ts:2848 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The git operation failed; inspect the included details output, run the command manually to reproduce, and fix the repository 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"}