{"record":{"id":"708d3f1485e5c7bd","repo":"openai/codex","slug":"unsupported-codex-config-override-value-at-path","errorCode":null,"errorMessage":"Unsupported Codex config override value at ${path}: ${typeName}","messagePattern":"Unsupported Codex config override value at (.+?): (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"sdk/typescript/src/exec.ts","lineNumber":336,"sourceCode":"    const rendered = value.map((item, index) => toTomlValue(item, `${path}[${index}]`));\n    return `[${rendered.join(\", \")}]`;\n  } else if (isPlainObject(value)) {\n    const parts: string[] = [];\n    for (const [key, child] of Object.entries(value)) {\n      if (!key) {\n        throw new Error(\"Codex config override keys must be non-empty strings\");\n      }\n      if (child === undefined) {\n        continue;\n      }\n      parts.push(`${formatTomlKey(key)} = ${toTomlValue(child, `${path}.${key}`)}`);\n    }\n    return `{${parts.join(\", \")}}`;\n  } else if (value === null) {\n    throw new Error(`Codex config override at ${path} cannot be null`);\n  } else {\n    const typeName = typeof value;\n    throw new Error(`Unsupported Codex config override value at ${path}: ${typeName}`);\n  }\n}\n\nconst TOML_BARE_KEY = /^[A-Za-z0-9_-]+$/;\nfunction formatTomlKey(key: string): string {\n  return TOML_BARE_KEY.test(key) ? key : JSON.stringify(key);\n}\n\nfunction isPlainObject(value: unknown): value is CodexConfigObject {\n  return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction findCodexPath(): CodexPathResolution {\n  const { platform, arch } = process;\n\n  let targetTriple = null;\n  switch (platform) {\n    case \"linux\":","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/sdk/typescript/src/exec.ts#L318-L354","documentation":"Error \"Unsupported Codex config override value at ${path}: ${typeName}\" thrown in openai/codex.","triggerScenarios":"Thrown at sdk/typescript/src/exec.ts:336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only supported override value types: string, number, boolean, arrays, or plain objects."],"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"}