Codex Cloud failing to create PR across multiple repos (patch works locally)

Resolved 💬 10 comments Opened May 5, 2026 by dansommer Closed May 6, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

Codex Cloud (web)

What subscription do you have?

Pro

What platform is your computer?

_No response_

What issue are you seeing?

I’m consistently seeing Codex Cloud fail at the PR creation step.

Details:

  • Occurs across multiple repositories (not repo-specific)
  • Tasks complete successfully and generate valid patches
  • PR creation fails every time
  • Applying the patch locally via git apply works

Environment:

  • Date: May 5, 2026
  • Using ChatGPT Pro
  • GitHub integration enabled

Error behavior:

  • Codex generates changes but fails when creating/updating PR
  • Same failure pattern across repos

This appears to be an issue with Codex Cloud PR integration rather than repo configuration.

Please advise if this is a known issue or if there’s a workaround beyond manual patch application.

What steps can reproduce the bug?

After Codex writes the update the PR fails to create.

What is the expected behavior?

The PR should be created.

Additional information

_No response_

View original on GitHub ↗

10 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #21000

Powered by Codex Action

OverTitus · 2 months ago

Yeah Running into this issue

irgordon · 2 months ago

I am experiencing the same issue. Codex Cloud seems to have an API failure communicating with GitHub.

!image

johnparker007 · 2 months ago

I have been experiencing this issue for a few hours now - UK based, $100 business plan. Create PR button gives red 'Failed to create PR' error.

drandev0 · 2 months ago

https://github.com/openai/codex/issues/21000 this has been reported. But yeah same issues

loading189 · 2 months ago

Having this same problem.

olinkluzz1v · 2 months ago

Same issue, for hours I can't open a PR, always getting an error. Weirdly enough, chatgpt can update my repo just fine, while Codex apparently can't write to it, although I tried every possible solution, from cleaning cache, reconnecting, etc..

ChatGPT GitHub connector: works ✅
Codex task shell Git remote/auth: broken ❌

olinkluzz1v · 2 months ago

Ok, I was able to fix it (or at least I hope that helped) - I went and completely revoked everything related to ChatGPT under Accessibility > Applications (both Installed and Authorized) and I was finally able to open a PR.

Prior to that, it would constantly create an empty btanch with no changes upon clicking open PR, so frustrating, as it took me hours.

Hopefully this helps someone.

etraut-openai contributor · 2 months ago

This should be mitigated now.

johnparker007 · 1 month ago

Seeing this, UK biz plan:

<img width="617" height="145" alt="Image" src="https://github.com/user-attachments/assets/d786348f-a947-49db-9c62-d0dd983324fd" />