{"record":{"id":"4649fd9f62b57697","repo":"diegosouzapw/OmniRoute","slug":"chatgpt-web-pro-is-read-only-and-cannot-satisfy-a","errorCode":null,"errorMessage":"ChatGPT Web Pro is read-only and cannot satisfy a required tool choice","messagePattern":"ChatGPT Web Pro is read-only and cannot satisfy a required tool choice","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chatgpt-web-codex.ts","lineNumber":168,"sourceCode":"  const cdpEndpoint =\n    configuredString(data, \"browserCdpEndpoint\") ?? process.env.CHATGPT_WEB_CODEX_CDP_URL;\n  const chromeExecutablePath = detectChromeExecutable(\n    configuredString(data, \"chromeExecutablePath\")\n  );\n  if (!chromeExecutablePath && !cdpEndpoint) {\n    throw new Error(\"No supported Chrome or Chromium executable was found\");\n  }\n\n  const proAvailable = data.proAvailable === true;\n  if (route.pro && !proAvailable) {\n    throw new Error(\"ChatGPT Pro is not available for this connection\");\n  }\n\n  const hasTools = toolModeRequired(parsed);\n  const requiredChoice =\n    parsed.options.toolChoice === \"required\" || typeof parsed.options.toolChoice === \"object\";\n  if (route.pro && requiredChoice) {\n    throw new Error(\"ChatGPT Web Pro is read-only and cannot satisfy a required tool choice\");\n  }\n\n  const connector =\n    configuredString(data, \"connectorName\", \"appName\") ??\n    process.env.CHATGPT_WEB_CODEX_CONNECTOR_NAME?.trim();\n  if (!route.pro && hasTools && !connector) {\n    throw new Error(\"ChatGPT Web (Codex) tools require a ready tunnel and Custom Connector\");\n  }\n\n  parsed.modelId = \"gpt-5.6-sol\";\n  parsed.options.reasoning = route.effort;\n\n  return {\n    adapter: \"chatgpt-web\",\n    baseUrl: \"https://chatgpt.com\",\n    defaultModel: \"gpt-5.6-sol\",\n    models: [\"gpt-5.6-sol\"],\n    chatgptWeb: {","sourceCodeStart":150,"sourceCodeEnd":186,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chatgpt-web-codex.ts#L150-L186","documentation":"Error \"ChatGPT Web Pro is read-only and cannot satisfy a required tool choice\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex.ts:168 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}