{"record":{"id":"614d1f3ed8c47304","repo":"different-ai/openwork","slug":"openwork-must-be-activated-from-your-den-portal-be","errorCode":null,"errorMessage":"OpenWork must be activated from your Den portal before this command is available.","messagePattern":"OpenWork must be activated from your Den portal before this command is available\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/desktop/electron/main.mjs","lineNumber":2437,"sourceCode":"      if (message && !seenMessages.has(message)) {\n        seenMessages.add(message);\n        messages.push(message);\n      }\n      current = desktopErrorCause(current);\n    }\n    const combined = messages.join(\": \") || \"Unknown desktop command error\";\n    return combined.length > 2000 ? `${combined.slice(0, 1997)}...` : combined;\n  } catch {\n    return \"Unknown desktop command error\";\n  }\n}\n\nfunction assertDesktopActivation() {\n  if (desktopActivationRequired(\n    DESKTOP_DISTRIBUTION,\n    workspaceStore.readDesktopBootstrapConfigSync(),\n  )) {\n    throw new Error(\"OpenWork must be activated from your Den portal before this command is available.\");\n  }\n}\n\nasync function handleDesktopInvoke(event, command, ...args) {\n  if (!enterprisePreactivationCommandAllowed(command)) {\n    assertDesktopActivation();\n  }\n  const handler = desktopCommandHandlers[command];\n  if (!handler) {\n    throw new Error(`Electron desktop bridge method is not implemented yet: ${command}`);\n  }\n  try {\n    return await handler(event, ...args);\n  } catch (error) {\n    throw new Error(desktopErrorMessageWithCauses(error), { cause: error });\n  }\n}\n","sourceCodeStart":2419,"sourceCodeEnd":2455,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/apps/desktop/electron/main.mjs#L2419-L2455","documentation":"Error \"OpenWork must be activated from your Den portal before this command is available.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at apps/desktop/electron/main.mjs:2437 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}