paperclipai/paperclip · error
${input.failureLabel ?? `git ${input.args.join(" ")}`} faile
Error message
${input.failureLabel ?? `git ${input.args.join(" ")}`} failed: ${details} What it means
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.
Source
Thrown at server/src/services/workspace-runtime.ts:2902
stdout: result.stdout,
stderr: result.stderr,
system: result.code === 0 ? input.successMessage ?? null : null,
metadata:
result.stdoutTruncated || result.stderrTruncated
? {
stdoutTruncated: result.stdoutTruncated,
stderrTruncated: result.stderrTruncated,
stdoutBytes: result.stdoutBytes,
stderrBytes: result.stderrBytes,
}
: null,
};
},
});
if (code !== 0) {
const details = [stderr.trim(), stdout.trim()].filter(Boolean).join("\n");
throw new Error(
details.length > 0
? `${input.failureLabel ?? `git ${input.args.join(" ")}`} failed: ${details}`
: `${input.failureLabel ?? `git ${input.args.join(" ")}`} failed with exit code ${code ?? -1}`,
);
}
return stdout.trim();
}
async function recordWorkspaceCommandOperation(
recorder: WorkspaceOperationRecorder | null | undefined,
input: {
phase: "workspace_provision" | "workspace_seed" | "workspace_runtime_provision" | "workspace_teardown";
command: string;
resolvedCommand?: string;
cwd: string;
env: NodeJS.ProcessEnv;
label: string;
metadata?: Record<string, unknown> | null;View on GitHub (pinned to a7e689b3c3)
Solutions
- The git operation failed; inspect the included details output, run the command manually to reproduce, and fix the repository state.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at server/src/services/workspace-runtime.ts:2848 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@a7e689b3c3 (2026-08-18).
Data as JSON: /api/errors/7e716cde05813c73.
Report an issue: GitHub.