-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Description
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
- Run Codex Cloud against a repo that has
.github/pull_request_template.mdand the gh-wrapper inscripts/codex/cloud/startup.sh(e.g., github.com/xithexhub/podcastedition or hubi). - Let the session finish its coding work, then click the Codex Cloud UI button to submit a PR.
- 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 createruns 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 createunder the hood or honor.github/pull_request_template.mdbefore finalizing the PR.