paperclipai/paperclip · error · Error
Could not create working directory
Error message
Could not create working directory "${cwd}": ${reason} What it means
Error "Could not create working directory "${cwd}": ${reason}" thrown in paperclipai/paperclip.
Solutions
- Fix the reason given (permissions, parent missing) and retry creating "${cwd}".
When it happens
Trigger: Thrown at packages/adapter-utils/src/server-utils.ts:2545 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18).
Data as JSON: /api/errors/0785922f66f9b599.
Report an issue: GitHub.
Appendix: source
Thrown at packages/adapter-utils/src/server-utils.ts:2608
args,
env: Object.fromEntries(
Object.entries(options.remoteEnv ?? {}).filter((entry): entry is [string, string] => typeof entry[1] === "string"),
),
});
return {
command: sshResolved,
args: spawnTarget.args,
cwd: process.cwd(),
cleanup: spawnTarget.cleanup,
};
}
const resolved = await resolveCommandPath(command, cwd, env);
const executable = resolved ?? command;
if (options.localProcessSandbox) {
if (!resolved) {
throw new Error(`Command not found in PATH: "${command}"`);
}
const requestedSandboxCommand = options.localProcessSandbox.command?.trim() || "bwrap";
const sandboxCommand = await resolveCommandPath(requestedSandboxCommand, cwd, env);
if (!sandboxCommand) {
throw new Error(
`Local process confinement requires Bubblewrap, but "${requestedSandboxCommand}" was not found in PATH. Install bwrap or configure filesystemSandboxCommand.`,
);
}
const sandboxTarget = await buildLocalProcessSandboxSpawnTarget({
executable,
args,
cwd,
options: options.localProcessSandbox,
});
return { ...sandboxTarget, command: sandboxCommand };
}
if (process.platform !== "win32") {View on GitHub (pinned to 01ad858492)