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!

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4888

Powered by Codex Action

lunamidori5 · 10 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. * Submitting tasks from codex cloud CLI fail with “Provided git ref main does not exist” on repos without main branch #4888

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

etraut-openai contributor · 7 months ago

Closing out old bugs.