CLI -> Cloud Task Error
Resolved 💬 3 comments Opened Oct 27, 2025 by lunamidori5 Closed Jan 17, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.0.0 (built from the AUR should be 0.50)
What subscription do you have?
Teams / Enterprise
Which model were you using?
gpt-5-codex high
What platform is your computer?
Linux 6.12.54-2-cachyos-lts x86_64 unknown
What issue are you seeing?
Due to being unable to set a branch when using codex cloud exec --env numbers {request} the task fails cloudside due to no main branch.
What steps can reproduce the bug?
Run codex cloud exec --env numbers {request} on a repo that has no main branch. (numbers is placeholder for your env str)
What is the expected behavior?
The cloudtask starts with the right branch or we could add --branch to codex cloud exec
Additional information
Thank you for your hard work devs!
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thank you, yes it does seem so, but my issue states a way to maybe fix the issue, so not a full duplicate, if someone wishes to close this no hard feelings
Closing out old bugs.