{"record":{"id":"5f641a3987ad7ac0","repo":"openai/codex","slug":"unsupported-platform-platform-arch-5f641a","errorCode":null,"errorMessage":"Unsupported platform: ${platform} (${arch})","messagePattern":"Unsupported platform: (.+?) \\((.+?)\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"sdk/typescript/src/exec.ts","lineNumber":396,"sourceCode":"      break;\n    case \"win32\":\n      switch (arch) {\n        case \"x64\":\n          targetTriple = \"x86_64-pc-windows-msvc\";\n          break;\n        case \"arm64\":\n          targetTriple = \"aarch64-pc-windows-msvc\";\n          break;\n        default:\n          break;\n      }\n      break;\n    default:\n      break;\n  }\n\n  if (!targetTriple) {\n    throw new Error(`Unsupported platform: ${platform} (${arch})`);\n  }\n\n  const platformPackage = PLATFORM_PACKAGE_BY_TARGET[targetTriple];\n  if (!platformPackage) {\n    throw new Error(`Unsupported target triple: ${targetTriple}`);\n  }\n\n  let vendorRoot: string;\n  try {\n    const codexPackageJsonPath = moduleRequire.resolve(`${CODEX_NPM_NAME}/package.json`);\n    const codexRequire = createRequire(codexPackageJsonPath);\n    const platformPackageJsonPath = codexRequire.resolve(`${platformPackage}/package.json`);\n    vendorRoot = path.join(path.dirname(platformPackageJsonPath), \"vendor\");\n  } catch {\n    throw new Error(\n      `Unable to locate Codex CLI binaries. Ensure ${CODEX_NPM_NAME} is installed with optional dependencies.`,\n    );\n  }","sourceCodeStart":378,"sourceCodeEnd":414,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/sdk/typescript/src/exec.ts#L378-L414","documentation":"Error \"Unsupported platform: ${platform} (${arch})\" thrown in openai/codex.","triggerScenarios":"Thrown at sdk/typescript/src/exec.ts:396 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run on a supported platform and architecture combination, or install a build that ships binaries for this platform."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}