{"record":{"id":"94532fa54c447dfb","repo":"openclaw/openclaw","slug":"codex-configrequirements-read-returned-invalid-man","errorCode":null,"errorMessage":"Codex configRequirements/read returned invalid managed hooks","messagePattern":"Codex configRequirements/read returned invalid managed hooks","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/codex/src/app-server/thread-requests.ts","lineNumber":532,"sourceCode":"    undefined,\n    { signal },\n  );\n  if (!isJsonObject(response) || !Object.hasOwn(response, \"requirements\")) {\n    throw new Error(\"Codex configRequirements/read returned an invalid response\");\n  }\n  if (response.requirements === null) {\n    return;\n  }\n  if (!isJsonObject(response.requirements)) {\n    throw new Error(\"Codex configRequirements/read returned invalid requirements\");\n  }\n  for (const key of [\"hooks\", \"managedHooks\", \"managed_hooks\"] as const) {\n    const hooks = response.requirements[key];\n    if (hooks === undefined || hooks === null) {\n      continue;\n    }\n    if (!isJsonObject(hooks)) {\n      throw new Error(\"Codex configRequirements/read returned invalid managed hooks\");\n    }\n    if (hasNonEmptyJsonValue(hooks)) {\n      throw new Error(\"Codex restricted tool surface cannot override managed hooks\");\n    }\n  }\n  for (const key of [\"featureRequirements\", \"feature_requirements\"] as const) {\n    const requirements = response.requirements[key];\n    if (requirements === undefined || requirements === null) {\n      continue;\n    }\n    if (!isJsonObject(requirements)) {\n      throw new Error(\"Codex configRequirements/read returned invalid feature requirements\");\n    }\n    for (const [feature, enabled] of Object.entries(requirements)) {\n      if (typeof enabled !== \"boolean\") {\n        throw new Error(\"Codex configRequirements/read returned invalid feature requirements\");\n      }\n      if (enabled && CODEX_RING_ZERO_RESTRICTED_FEATURES.has(feature)) {","sourceCodeStart":514,"sourceCodeEnd":550,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/codex/src/app-server/thread-requests.ts#L514-L550","documentation":"Error \"Codex configRequirements/read returned invalid managed hooks\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/codex/src/app-server/thread-requests.ts:532 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01804a75319da4b69c9ab98ceaa30477e22b8c0b","analyzedAt":"2026-08-12T04:37:58.197Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}