{"record":{"id":"368439259759912c","repo":"Fission-AI/OpenSpec","slug":"workset-launch-failed","errorCode":"workset_launch_failed","errorMessage":"error.message","messagePattern":"error\\.message","errorType":"exception","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/commands/workset.ts","lineNumber":473,"sourceCode":"      } else {\n        console.log(\n          `Handing this terminal to ${opener.label} for '${name}' (the session ends when you exit).`\n        );\n      }\n\n      let result: LaunchResult;\n      try {\n        result = await launchOpenerCommand(launch);\n      } catch (error) {\n        // Make the launch-failure fix pasteable when an alternative is\n        // installed (the launcher itself does not know the table).\n        if (\n          error instanceof StoreError &&\n          error.diagnostic.code === 'workset_launch_failed'\n        ) {\n          const alternative = firstInstalledAlternative(table, opener.id);\n          if (alternative !== null) {\n            throw new StoreError(error.message, 'workset_launch_failed', {\n              target: 'workset.tool',\n              fix: `Run: openspec workset open ${name} --tool ${alternative}`,\n            });\n          }\n        }\n        throw error;\n      }\n\n      const exitCode = exitCodeForLaunch(result);\n      if (exitCode !== 0) {\n        process.exitCode = exitCode;\n      }\n    } catch (error) {\n      emitFailure(options.json, { status: [] }, error, 'workset_error');\n\n      // Never strand the user: once the derived file is regenerated,\n      // every failure (except a prompt cancellation) carries the\n      // manual route - the file path plus the members it contains.","sourceCodeStart":455,"sourceCodeEnd":491,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/commands/workset.ts#L455-L491","documentation":"Error \"error.message\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/commands/workset.ts:473 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":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}