{"record":{"id":"810424e2ffd3802e","repo":"paperclipai/paperclip","slug":"working-directory-does-not-exist-cwd","errorCode":null,"errorMessage":"Working directory does not exist: \"${cwd}\"","messagePattern":"Working directory does not exist: \"(.+?)\"","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/adapter-utils/src/server-utils.ts","lineNumber":3527,"sourceCode":"  const remote = options.remoteExecution ?? null;\n  if (remote) {\n    const sshResolved = await resolveCommandPath(\"ssh\", process.cwd(), env);\n    if (!sshResolved) {\n      throw new Error('Command not found in PATH: \"ssh\"');\n    }\n    const spawnTarget = await buildSshSpawnTarget({\n      spec: remote,\n      command,\n      args,\n      env: Object.fromEntries(\n        Object.entries(options.remoteEnv ?? {}).filter(\n          (entry): entry is [string, string] => typeof entry[1] === \"string\",\n        ),\n      ),\n    });\n    return {\n      command: sshResolved,\n      args: spawnTarget.args,\n      cwd: process.cwd(),\n      cleanup: spawnTarget.cleanup,\n    };\n  }\n\n  const resolved = await resolveCommandPath(command, cwd, env);\n  const executable = resolved ?? command;\n\n  if (options.localProcessSandbox) {\n    if (!resolved) {\n      throw new Error(`Command not found in PATH: \"${command}\"`);\n    }\n    const requestedSandboxCommand =\n      options.localProcessSandbox.command?.trim() || \"bwrap\";\n    const sandboxCommand = await resolveCommandPath(\n      requestedSandboxCommand,\n      cwd,\n      env,","sourceCodeStart":3509,"sourceCodeEnd":3545,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapter-utils/src/server-utils.ts#L3509-L3545","documentation":"Error \"Working directory does not exist: \"${cwd}\"\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/adapter-utils/src/server-utils.ts:2534 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the working directory or correct the configured path."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}