{"record":{"id":"3ecc2db4b367b6e3","repo":"openai/codex","slug":"codex-config-override-at-path-cannot-be-null","errorCode":null,"errorMessage":"Codex config override at ${path} cannot be null","messagePattern":"Codex config override at (.+?) cannot be null","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"sdk/typescript/src/exec.ts","lineNumber":333,"sourceCode":"  } else if (typeof value === \"boolean\") {\n    return value ? \"true\" : \"false\";\n  } else if (Array.isArray(value)) {\n    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","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/sdk/typescript/src/exec.ts#L315-L351","documentation":"Error \"Codex config override at ${path} cannot be null\" thrown in openai/codex.","triggerScenarios":"Thrown at sdk/typescript/src/exec.ts:333 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the null override at the given path or replace it with a concrete value."],"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"}