{"record":{"id":"c22a46495d0d9ec8","repo":"openai/codex","slug":"unsupported-target-triple-targettriple-c22a46","errorCode":null,"errorMessage":"Unsupported target triple: ${targetTriple}","messagePattern":"Unsupported target triple: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"sdk/typescript/src/exec.ts","lineNumber":401,"sourceCode":"          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  }\n\n  const codexBinaryName = process.platform === \"win32\" ? \"codex.exe\" : \"codex\";\n  const nativePackage = resolveNativePackage(vendorRoot, targetTriple, codexBinaryName);\n  if (!nativePackage) {\n    throw new Error(","sourceCodeStart":383,"sourceCodeEnd":419,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/sdk/typescript/src/exec.ts#L383-L419","documentation":"Error \"Unsupported target triple: ${targetTriple}\" thrown in openai/codex.","triggerScenarios":"Thrown at sdk/typescript/src/exec.ts:401 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported Rust target triple for the packaged Codex binaries."],"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"}