Codex Cloud creates detached work checkout with no Git remote
Summary
Codex Cloud tasks are not receiving the requested Git checkout or remote even though the GitHub app has access to the repository and the branch is selected in the UI.
Reproduction
- Repository: elcartero07205-bit/ultron (private)
- Selected branch: codex/ar2c-os-isolated-bridge
- Reproduces in both an existing environment and a newly created environment.
- The fresh environment successfully installs all Python 3.12 dependencies from requirements.txt; this is not a package setup failure.
Expected
A cloud task should check out the selected branch and configure a usable origin remote.
Actual
Each task opens on local branch work at 8f0eaf7a08efae7f0aa8863c5d4a976cd72113bf. git remote -v returns no entries, only refs/heads/work exists, and the requested PR branch is absent. The task therefore cannot fetch, commit to, or push the PR branch.
Evidence
Fresh-environment read-only verification task: task_e_6a896a99be288325a85a331e1c32e7d3
It confirmed Python 3.12.13; all declared dependencies installed; offline pip install --dry-run --no-index -r requirements.txt succeeded; AR2C test modules collected successfully (21 + 90 tests). The only remaining failure is the missing Git remote and branch provision.
No credentials, secrets, or application data were used.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I observed the same checkout shape in a separate Codex Cloud task:
work;git remote -vreturned no entries;This matches the observable failure reported here.
A potentially separate handoff problem occurred in the same cloud image: a bundled MCP helper failed during startup with
ModuleNotFoundError: No module named 'mcp'while importingmcp.server.fastmcp. That may be independent, but I am noting it in case tool/image provisioning and the detached checkout are correlated.