{"record":{"id":"21f382e255260c0b","repo":"openai/codex","slug":"codex-config-override-keys-must-be-non-empty-strin","errorCode":null,"errorMessage":"Codex config override keys must be non-empty strings","messagePattern":"Codex config override keys must be non-empty strings","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"sdk/typescript/src/exec.ts","lineNumber":293,"sourceCode":"      return;\n    } else {\n      throw new Error(\"Codex config overrides must be a plain object\");\n    }\n  }\n\n  const entries = Object.entries(value);\n  if (!prefix && entries.length === 0) {\n    return;\n  }\n\n  if (prefix && entries.length === 0) {\n    overrides.push(`${prefix}={}`);\n    return;\n  }\n\n  for (const [key, child] of entries) {\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    const path = prefix ? `${prefix}.${key}` : key;\n    if (isPlainObject(child)) {\n      flattenConfigOverrides(child, path, overrides);\n    } else {\n      overrides.push(`${path}=${toTomlValue(child, path)}`);\n    }\n  }\n}\n\nfunction toTomlValue(value: CodexConfigValue, path: string): string {\n  if (typeof value === \"string\") {\n    return JSON.stringify(value);\n  } else if (typeof value === \"number\") {\n    if (!Number.isFinite(value)) {","sourceCodeStart":275,"sourceCodeEnd":311,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/sdk/typescript/src/exec.ts#L275-L311","documentation":"Error \"Codex config override keys must be non-empty strings\" thrown in openai/codex.","triggerScenarios":"Thrown at sdk/typescript/src/exec.ts:293 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use non-empty string keys for every config override entry."],"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"}