{"record":{"id":"75ca2566fe3f8f73","repo":"paperclipai/paperclip","slug":"could-not-create-working-directory-cwd-on-rem","errorCode":null,"errorMessage":"Could not create working directory \"${cwd}\" on remote target${detail ? `: ${detail}` : \".\"}","messagePattern":"Could not create working directory \"(.+?)\" on remote target(.+?)` : \"\\.\"\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/adapter-utils/src/execution-target.ts","lineNumber":1111,"sourceCode":"      graceSec: 10,\n    });\n  } catch (err) {\n    return {\n      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(","sourceCodeStart":1093,"sourceCodeEnd":1129,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapter-utils/src/execution-target.ts#L1093-L1129","documentation":"Directory-creation failure on a remote target: creation was requested (createIfMissing) but the mkdir/test shell command exited non-zero — usually permissions or a missing parent path segment — with the remote stderr/stdout embedded as detail.","triggerScenarios":"Thrown at packages/adapter-utils/src/execution-target.ts:1061 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the working directory manually on the remote target, or fix the error in the detail.","Check permissions on the remote parent directory."],"exampleFix":null,"handlingStrategy":"retry","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"}