{"record":{"id":"80f7fa1b32363609","repo":"paperclipai/paperclip","slug":"execution-workspace-needs-a-local-path-before-pape-80f7fa","errorCode":null,"errorMessage":"Execution workspace needs a local path before Paperclip can manage local runtime services","messagePattern":"Execution workspace needs a local path before Paperclip can manage local runtime services","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"server/src/routes/execution-workspaces.ts","lineNumber":867,"sourceCode":"            }\n            await reportRepairPhase(\"readiness_validation\", \"succeeded\");\n          } catch (error) {\n            await reportRepairPhase(repairPhase, \"failed\");\n            throw error;\n          }\n        } else if (action === \"stop\" || action === \"restart\") {\n          await stopRuntimeServicesForExecutionWorkspace({\n            db,\n            executionWorkspaceId: existing.id,\n            workspaceCwd,\n            runtimeServiceId: selectedRuntimeServiceId,\n          });\n        }\n\n        if (action === \"start\" || action === \"restart\") {\n          const availableWorkspace = await ensureWorkspaceAvailable();\n          if (!availableWorkspace) {\n            throw new Error(\"Execution workspace needs a local path before Paperclip can manage local runtime services\");\n          }\n          let startedServices;\n          try {\n            startedServices = await startRuntimeServicesForWorkspaceControl({\n              db,\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,","sourceCodeStart":849,"sourceCodeEnd":885,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/server/src/routes/execution-workspaces.ts#L849-L885","documentation":"Precondition failure in recordRuntimeControlOperation (start/restart of local runtime services): the execution workspace has no local path (cwd). Managing local runtime services — start/stop/restart — requires a materialized local workspace directory, so the control action is rejected when cwd is absent.","triggerScenarios":"Thrown at server/src/routes/execution-workspaces.ts:444 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure a local path for the execution workspace before managing local runtime services."],"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-14T00:17:10.932Z"}