{"record":{"id":"2e483745f7ffc98e","repo":"paperclipai/paperclip","slug":"working-directory-must-be-an-absolute-path-cwd","errorCode":null,"errorMessage":"Working directory must be an absolute path: \"${cwd}\"","messagePattern":"Working directory must be an absolute path: \"(.+?)\"","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/adapter-utils/src/server-utils.ts","lineNumber":3508,"sourceCode":"}\n\nfunction resolveWindowsCmdShell(env: NodeJS.ProcessEnv): string {\n  const fallbackRoot =\n    env.SystemRoot || process.env.SystemRoot || \"C:\\\\Windows\";\n  return path.join(fallbackRoot, \"System32\", \"cmd.exe\");\n}\n\nasync function resolveSpawnTarget(\n  command: string,\n  args: string[],\n  cwd: string,\n  env: NodeJS.ProcessEnv,\n  options: {\n    remoteExecution?: RemoteExecutionSpec | null;\n    remoteEnv?: Record<string, string> | null;\n    localProcessSandbox?: LocalProcessSandboxOptions | null;\n  } = {},\n): Promise<SpawnTarget> {\n  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,","sourceCodeStart":3490,"sourceCodeEnd":3526,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapter-utils/src/server-utils.ts#L3490-L3526","documentation":"Error \"Working directory must be an absolute path: \"${cwd}\"\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/adapter-utils/src/server-utils.ts:2517 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an absolute path for the working directory."],"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"}