{"record":{"id":"13194d8128038f65","repo":"Kong/insomnia","slug":"plugin-window-unknown-action-type-type","errorCode":null,"errorMessage":"[plugin-window] Unknown action type: ${type}","messagePattern":"\\[plugin-window\\] Unknown action type: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/plugins/invoke-method.ts","lineNumber":134,"sourceCode":"      switch (type) {\n        case 'request': {\n          allActions = await getRequestActions();\n          break;\n        }\n        case 'requestGroup': {\n          allActions = await getRequestGroupActions();\n          break;\n        }\n        case 'workspace': {\n          allActions = await getWorkspaceActions();\n          break;\n        }\n        case 'document': {\n          allActions = await getDocumentActions();\n          break;\n        }\n        default: {\n          throw new Error(`[plugin-window] Unknown action type: ${type}`);\n        }\n      }\n\n      const entry = allActions.find(a => a.plugin.name === pluginName && a.label === label);\n      if (!entry) {\n        throw new Error(`[plugin-window] Action not found: ${pluginName}/${label}`);\n      }\n\n      // A1/T1: a sandboxed user plugin's action (a throw-stub here after discovery) runs in the\n      // main-process sandbox over the templating-worker-database protocol; bundle plugins, an\n      // elevated plugin, and the flag-off path run in-process (see resolvePluginExecutionMode).\n      const settings = await fetchFromTemplateWorkerDatabase('settings.get', {});\n      if (shouldSandboxPlugin(settings, entry.plugin)) {\n        await fetchFromTemplateWorkerDatabase('plugin.runUserAction', {\n          plugin: { directory: entry.plugin.directory, name: entry.plugin.name, permissions: entry.plugin.permissions },\n          actionKind: type,\n          actionLabel: label,\n          actionDomainData: domainData,","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/plugins/invoke-method.ts#L116-L152","documentation":"Error \"[plugin-window] Unknown action type: ${type}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/plugins/invoke-method.ts:134 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":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}