GitHub @codex work task gets no tool to push back to existing PR despite write access
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- PR merge metrics
- PR metrics pending
Description
Product
Codex Cloud / GitHub @codex mention workflow
Summary
A non-review @codex mention on an existing pull request started the expected Codex Cloud work task, checked out the correct repository and PR branch, edited and tested the code, and made a local commit. The task was not given any GitHub publishing tool, so it could not push the commit back to the existing PR branch despite the ChatGPT Codex Connector having write access.
This is not a dependency setup failure or a missing GitHub App installation.
Reproduction
Public pull request: https://github.com/discopy/discopy/pull/438
- Install the ChatGPT Codex Connector for
discopy/discopy. - Create a Codex Cloud environment for that repository.
- On the existing same-repository PR, comment:
@codex address the comments above - After creating the environment, trigger it again:
done @codex try again - Wait for the cloud task to finish.
Trigger: https://github.com/discopy/discopy/pull/438#issuecomment-5278877123
Result: https://github.com/discopy/discopy/pull/438#issuecomment-5279013264
Cloud task: https://chatgpt.com/s/cd_6a7d96c6688481919ffd773314ceb8cf
Actual behavior
The task:
- checked out
discopy/discopyonclaude/issue-437-simplify-monoidal-layer; - edited five files;
- ran the focused and full
--skip-extratest suites successfully; - created local commit
2884cb1; - then reported that
make_prwas unavailable, the checkout had no Git remote, and GitHub CLI was unauthenticated.
The task UI exposes only patch-copying actions. No commit reached the existing PR branch, whose head remained 8f11875f.
The task also tried to reason about creating another pull request even though it was launched from PR #438 and should have updated that PR's existing branch.
Verified permissions and repository state
At reproduction time:
- the GitHub connector listed installations for
toumix,toumix-agents, and the personal accountdiscopy; - connector repository discovery returned
discopy/discopywithpush: true; - the public ChatGPT Codex Connector manifest requested
contents: writeandpull_requests: write; - the mentioning user
toumixhad repositorywritepermission; - PR #438 used a same-repository head branch, not a fork;
- no branch protection or repository ruleset blocked the head branch.
Reinstalling the app or adding a PAT to the cloud environment should not be necessary. Cloud secrets are unavailable during the agent phase, and the documented GitHub integration says a non-review @codex task can push a fix back to the PR branch when it has permission.
Expected behavior
A work task launched by a non-review @codex mention on an existing PR should receive the platform publishing capability needed to update that PR's current head branch.
It should:
- edit and validate the checkout;
- commit the completed change;
- push the commit to the existing PR branch through the connected GitHub installation;
- report the pushed commit accurately.
It should not require an authenticated gh CLI inside the isolated container, should not require a normal Git remote containing reusable credentials, and should not try to create a second PR.
If publication is intentionally disallowed, the task should fail before doing eleven minutes of mutation/testing and explain the exact authorization boundary rather than looking for a nonexistent make_pr tool.
Related
Related but distinct: #19520 reports fabricated successful make_pr narration. This report is the inverse failure: the task accurately admits that no publishing tool was exposed, leaving a real local commit stranded.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the non-review @codex mention workflow and the task tool provisioning for existing pull requests, using PR #438 and the linked cloud task as reproduction evidence. Trace how the connected GitHub installation and current PR branch are passed to the task; done means a permitted task can commit and push to that branch, report the commit, and avoid requiring an authenticated gh CLI or creating a second PR.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, rust
- Domain
- cloud, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100