{"record":{"id":"106b050edba80605","repo":"paperclipai/paperclip","slug":"execution-workspace-needs-a-local-path-before-pape","errorCode":null,"errorMessage":"Execution workspace needs a local path before Paperclip can run workspace commands","messagePattern":"Execution workspace needs a local path before Paperclip can run workspace commands","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"server/src/routes/execution-workspaces.ts","lineNumber":580,"sourceCode":"                  identifier: null,\n                  title: existing.name,\n                }\n              : null,\n            agent: {\n              id: actor.agentId ?? null,\n              name: actor.actorType === \"user\" ? \"Board\" : \"Agent\",\n              companyId: existing.companyId,\n            },\n            recorder,\n          });\n\n        if (action === \"run\") {\n          if (!workspaceCommand || workspaceCommand.kind !== \"job\") {\n            throw new Error(\"Workspace job selection is required\");\n          }\n          const availableWorkspace = await ensureWorkspaceAvailable();\n          if (!availableWorkspace) {\n            throw new Error(\"Execution workspace needs a local path before Paperclip can run workspace commands\");\n          }\n          return await runWorkspaceJobForControl({\n            actor: {\n              id: actor.agentId ?? null,\n              name: actor.actorType === \"user\" ? \"Board\" : \"Agent\",\n              companyId: existing.companyId,\n            },\n            issue: existing.sourceIssueId\n              ? {\n                  id: existing.sourceIssueId,\n                  identifier: null,\n                  title: existing.name,\n                }\n              : null,\n            workspace: availableWorkspace,\n            command: workspaceCommand.rawConfig,\n            adapterEnv: {},\n            recorder,","sourceCodeStart":562,"sourceCodeEnd":598,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/server/src/routes/execution-workspaces.ts#L562-L598","documentation":"Precondition failure in recordRuntimeControlOperation (action 'run'): ensureWorkspaceAvailable resolved the workspace but it has no local path (cwd), which Paperclip requires to run workspace commands. The workspace row/lease exists but was never materialized on disk, so command execution cannot proceed.","triggerScenarios":"Thrown at server/src/routes/execution-workspaces.ts:393 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure a local path for the execution workspace before running workspace commands."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a7e689b3c35347b529cb9f54c9b9a8575a3dcab6","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}