Codex Cloud PR button ignores pull request template

Resolved 💬 2 comments Opened Nov 17, 2025 by apt-get-coke Closed Jan 17, 2026

Summary

Codex Cloud repositories provide a .github/pull_request_template.md and a gh wrapper that injects gh pr create --template … so every pull request includes a Fixes #… line. Codex CLI obeys this flow and PRs auto-link to their GitHub issues.

When using Codex Cloud, the "Create PR" button in the UI apparently bypasses gh pr create. The template (and closing keywords) never get applied, so the resulting PR is detached from the issue unless someone edits the body manually.

Steps to Reproduce

  1. Run Codex Cloud against a repo that has .github/pull_request_template.md and the gh-wrapper in scripts/codex/cloud/startup.sh (e.g., github.com/xithexhub/podcastedition or hubi).
  2. Let the session finish its coding work, then click the Codex Cloud UI button to submit a PR.
  3. Inspect the PR body on GitHub.

Expected Results

The PR body should include the template with Fixes #…, so GitHub auto-links the referenced issue when the PR merges—just like when gh pr create is used.

Actual Results

The PR body only contains Codex Cloud's auto-generated summary/testing text. The template is ignored, so Fixes #… is missing and the PR does not auto-close the issue.

Additional Notes

  • Re-running the same work via Codex CLI results in the template being filled automatically, confirming the wrapper works when gh pr create runs locally.
  • Our instructions already tell the agent to perform all GitHub operations through the CLI, but the UI button bypasses those instructions. Ideally the button should either call gh pr create under the hood or honor .github/pull_request_template.md before finalizing the PR.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗