{"record":{"id":"5560ce472f754e65","repo":"diegosouzapw/OmniRoute","slug":"codex-cloud-send-message-failed-response-status","errorCode":null,"errorMessage":"Codex Cloud send message failed: ${response.status} ${error}","messagePattern":"Codex Cloud send message failed: (.+?) (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/cloudAgent/agents/codex.ts","lineNumber":132,"sourceCode":"  }\n\n  async sendMessage(\n    externalId: string,\n    message: string,\n    credentials: AgentCredentials\n  ): Promise<CloudAgentActivity> {\n    const response = await fetch(`${this.baseUrl}/codex/cloud/tasks/${externalId}/followup`, {\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n        Authorization: `Bearer ${credentials.apiKey}`,\n      },\n      body: JSON.stringify({ message }),\n    });\n\n    if (!response.ok) {\n      const error = await response.text();\n      throw new Error(`Codex Cloud send message failed: ${response.status} ${error}`);\n    }\n\n    return {\n      id: this.generateActivityId(),\n      type: \"message\",\n      content: message,\n      timestamp: new Date().toISOString(),\n    };\n  }\n\n  async listSources(\n    _credentials: AgentCredentials\n  ): Promise<{ name: string; url: string; branch?: string }[]> {\n    return [];\n  }\n}\n","sourceCodeStart":114,"sourceCodeEnd":149,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/cloudAgent/agents/codex.ts#L114-L149","documentation":"Error \"Codex Cloud send message failed: ${response.status} ${error}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/cloudAgent/agents/codex.ts:132 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"}