{"record":{"id":"0e77d5a5199e3af5","repo":"paperclipai/paperclip","slug":"workspace-not-found","errorCode":null,"errorMessage":"Workspace not found","messagePattern":"Workspace not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-workspace-diff/src/worker.ts","lineNumber":65,"sourceCode":"    ctx.logger.info(`${PLUGIN_NAME} plugin setup`);\n    const workspaceDiff = workspaceDiffService();\n\n    ctx.data.register(\"workspace-diff\", async (params: Record<string, unknown>) => {\n      const workspaceId = readString(params.workspaceId);\n      const companyId = readString(params.companyId);\n      if (!workspaceId || !companyId) {\n        throw new Error(\"workspaceId and companyId are required\");\n      }\n\n      if (params.entityType === \"project_workspace\") {\n        const projectId = readString(params.projectId);\n        if (!projectId) {\n          throw new Error(\"projectId is required for project workspace diffs\");\n        }\n        const workspaces = await ctx.projects.listWorkspaces(projectId, companyId);\n        const workspace = workspaces.find((candidate) => candidate.id === workspaceId);\n        if (!workspace) {\n          throw new Error(\"Workspace not found\");\n        }\n        return workspaceDiff.getDiff({\n          id: workspace.id,\n          companyId,\n          cwd: workspace.path,\n          baseRef: resolveDefaultBaseRef({\n            projectWorkspaceDefaultRef: workspace.defaultRef,\n            projectWorkspaceRepoRef: workspace.repoRef,\n          }),\n        }, workspaceDiffQuerySchema.parse(params));\n      }\n\n      const workspace = await ctx.executionWorkspaces.get(workspaceId, companyId);\n      if (!workspace) {\n        throw new Error(\"Workspace not found\");\n      }\n      let projectWorkspaceDefaultBaseRef: string | null = null;\n      if (!readOptionalString(workspace.baseRef)) {","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/plugins/plugin-workspace-diff/src/worker.ts#L47-L83","documentation":"Error \"Workspace not found\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-workspace-diff/src/worker.ts:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the workspace id; the workspace may have been deleted or belongs to another company."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}