{"record":{"id":"3a69e2acddef13bc","repo":"paperclipai/paperclip","slug":"working-directory-does-not-exist-on-remote-target","errorCode":null,"errorMessage":"Working directory does not exist on remote target: \"${cwd}\"${detail ? ` (${detail})` : \"\"}","messagePattern":"Working directory does not exist on remote target: \"(.+?)\"(.+?)\\)` : \"\"\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/adapter-utils/src/execution-target.ts","lineNumber":1115,"sourceCode":"      code,\n      level: \"warn\",\n      message: \"Install command threw before completion.\",\n      detail: err instanceof Error ? err.message : String(err),\n    };\n  }\n  const tail = (text: string) =>\n    text.split(/\\r?\\n/).filter((line) => line.trim().length > 0).slice(-3).join(\" | \").slice(0, 480);\n  if (result.timedOut) {\n    return {\n      code,\n      level: \"warn\",\n      message: `Install command timed out: ${trimmed}`,\n      detail: tail(result.stderr || result.stdout),\n    };\n  }\n  if ((result.exitCode ?? 1) === 0) {\n    return {\n      code,\n      level: \"info\",\n      message: `Install command ran: ${trimmed}`,\n      ...(tail(result.stdout) ? { detail: tail(result.stdout) } : {}),\n    };\n  }\n  return {\n    code,\n    level: \"warn\",\n    message: `Install command exited ${result.exitCode}: ${trimmed}`,\n    detail: tail(result.stderr || result.stdout),\n  };\n}\n\nexport async function readAdapterExecutionTargetHomeDir(\n  runId: string,\n  target: AdapterExecutionTarget | null | undefined,\n  options: AdapterExecutionTargetShellOptions,\n): Promise<string | null> {","sourceCodeStart":1097,"sourceCodeEnd":1133,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapter-utils/src/execution-target.ts#L1097-L1133","documentation":"Directory-existence failure on a remote target: creation was not requested (createIfMissing false) and the test -d check found the working directory absent, so commands cannot be launched there; any remote stderr detail is appended.","triggerScenarios":"Thrown at packages/adapter-utils/src/execution-target.ts:1065 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create \"${cwd}\" on the remote target before running.","Fix the configured working directory path."],"exampleFix":null,"handlingStrategy":"validation","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"}