Regression: Codex cannot publish a committed branch to an already connected GitHub repository
Regression: Codex cannot publish a committed branch to an already connected GitHub repository
Severity
High — completed work is left inside a Codex-managed local checkout that the user cannot access or publish.
Environment
- Codex Desktop on Windows
- GitHub application shown as connected
- GitHub, Review Follow-up, CI Debug, and Publish Changes skills enabled
- GitHub plugin version shown in the UI:
0.1.8-2841cf9749ae - Repository:
Faerdraug/darkover-nexus - Branch:
sprint-075i-genealogy-union-view-model - Commit ready to publish:
91457043e62c2f74b9ab98ef527237de79891e19 - Worktree clean; branch is one commit ahead of the remote branch
Expected behavior
As in previous Codex tasks for the same repository, after the user explicitly asks to push and approves the action,
Codex should publish the committed branch using either Git or the connected GitHub Publish Changes workflow.
Actual behavior
- A direct sandboxed
git push -u origin sprint-075i-genealogy-union-view-modelcannot reach GitHub on port 443. - The required escalated execution is rejected by Codex's approval reviewer with:
This push would send private workspace code to GitHub, which is not established here as a trusted internal or explicitly approved third-party destination.
- The user explicitly confirms the exact commit, repository, and destination branch.
- The approval reviewer rejects the push again, even after that explicit confirmation.
- The GitHub application is connected and Publish Changes is enabled in Codex.
- A new Publish Changes attempt then fails with:
Publication bloquée : GitHub CLI (gh) n’est pas installé ou accessible dans le PATH.
ghwas never required for earlier pushes from Codex to the same repository.- The repository checkout containing the commit is Codex-managed and is not directly accessible to the user, so
asking the user to run git push from that checkout is not a workable fallback.
Steps to reproduce
- Open a Codex Desktop task backed by a Codex-managed checkout on Windows.
- Connect the GitHub application and enable Publish Changes.
- Commit a change on a local branch tracking an existing branch in a private GitHub repository.
- Ask Codex to push the branch.
- Explicitly approve the exact repository, branch, and commit when prompted.
- Observe that the approval reviewer still rejects direct
git pushas external disclosure. - Try Publish Changes.
- Observe that Publish Changes requires a separately installed and authenticated
ghexecutable despite the
GitHub connector being connected.
Regression and impact
- Previous Codex tasks could push branches to this repository without GitHub CLI.
- The current combination of managed checkout, approval policy, and Publish Changes creates a dead end:
direct Git push is forbidden, while the approved connector workflow unexpectedly depends on an unavailable CLI.
- Explicit user consent does not unblock the operation.
- The user cannot directly access the checkout that contains the unpublished commit.
- This makes completed work appear lost or forces manual bundle/patch recovery.
Requested fix
Any one of the following would resolve the regression:
- Treat a repository authorized through the connected GitHub application as an approved publication destination.
- Allow a scoped
git pushafter explicit user approval of repository, branch, and commit. - Make Publish Changes use the connected GitHub application without requiring a separately installed
ghCLI. - Bundle GitHub CLI with Codex when Publish Changes requires it.
- Ensure Codex-managed checkouts are accessible to the user or provide a first-class export/publish fallback.
Available attachments
- Screenshot showing the GitHub application connected and Publish Changes enabled.
- Git patch and verified bundle containing the unpublished commit.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗