codex icon indicating copy to clipboard operation
codex copied to clipboard

codex cloud does not discover current Cloud environments

Open jackperosin06 opened this issue 2 months ago • 40 comments

codex cloud does not discover current Cloud environments

What version of Codex CLI is running?

codex-cli 0.160.0, the npm latest release at the time of this check.

Authentication

ChatGPT authentication. The CLI and desktop app use the same account. Token refresh succeeds. No API key is in use.

Platform

macOS, Darwin 24.6.0 arm64 arm. I ran these checks through a terminal PTY.

What issue are you seeing?

I can see two owned, Private environments in Settings > Codex Cloud. Neither has an Unpublished badge. The settings catalog returns both environments with current versions when requested with scope=user&omitDraft=true; it returns no further page. The workspace catalog returns zero environments. Legacy Codex Cloud shows “No cloud environments yet”.

On the same account, codex cloud shows only “All Environments (Global)” in its environment picker. I get the same result from a checkout with a GitHub remote and from /tmp.

An explicit submission exits 1 with:

Error: no cloud environments are available for this workspace

The CLI's catalog requests return HTTP 200. Its repository-specific lookup returns zero environments. codex cloud list --json returns {"tasks":[],"cursor":null}; I understand that this is an execution-task list, not an environment inventory.

What steps can reproduce the bug?

  1. Use a ChatGPT account with current Cloud environments visible in Settings > Codex Cloud and no environments in Legacy Codex Cloud.
  2. Authenticate the latest CLI with that account.
  3. Run codex cloud, open the environment picker, and inspect the choices without submitting.
  4. Compare the picker from the repository checkout and from /tmp.
  5. Try codex cloud exec --env '<environment identifier>' --branch main --attempts 1 'Read-only environment canary; report pwd and git HEAD, then stop.'.

The submission above fails during environment resolution before creating a task. No canary has run.

What is the expected behavior?

The CLI should list accessible current Cloud environments and accept the supported identifier for fresh task dispatch. If this environment type requires a different CLI route, please document the command and identifier mapping.

The CLI documentation describes task submission through codex cloud exec --env, and the Cloud overview describes starting Cloud work from the CLI.

Diagnostic evidence

  • Current settings load /api/codex-cloud/v1/environment-configs?scope=user&limit=100&omitDraft=true. Its entries use provider=caas, stable IDs with an asenvcfg_ component, and version IDs with a cecfgver_ component.
  • CLI 0.160.0's environment discovery code queries /backend-api/wham/environments/by-repo/github/OWNER/REPO and /backend-api/wham/environments.
  • Its resolve_environment_id function rejects an empty catalog before matching --env. Replacing a version ID with a stable ID therefore cannot bypass this result.
  • I compared env_detect.rs in 0.160.0 and 0.162.0-alpha.3; the bytes match. I did not install or run the alpha release.
  • CODEX_CLOUD_TASKS_BASE_URL, CODEX_CLOUD_TASKS_MODE and CODEX_STARTING_DIFF are unset.
  • The existing doctor run passed installation/version, authentication, HTTP connectivity and the Responses WebSocket handshake. It also reported optional local MCP/state/terminal warnings; I have no evidence that they affect catalog discovery.

These observations suggest a mismatch between the current and legacy catalogs. Please confirm whether the released CLI supports the current environments and identify the supported repair or route.

Related: #49966 reports the new/legacy selection difference in the web UI. This report supplies CLI discovery and resolution evidence. #15544 concerns empty task-list reporting and was closed as not planned; this request concerns access to environments that exist in the current catalog.

I omitted account identifiers, environment identifiers, repository names, credentials and raw local logs.

jackperosin06 avatar Oct 02 '26 05:10 jackperosin06

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

  • #49966

Powered by Codex Action

github-actions[bot] avatar Oct 02 '26 05:10 github-actions[bot]

Still reproducible with the official codex-cli 0.162.0-alpha.7 Linux binary on NixOS/WSL2: codex cloud list --env <new-env-id> --json exits 1 with environment '…' not found, while existing tasks remain readable with the same login.

env_detect.rs is byte-identical to 0.160.0; no task submission was attempted.

servrox avatar Oct 02 '26 21:10 servrox

+1, i had the same problem, can not make the new codex cloud work.

dustin-pham2511 avatar Oct 03 '26 02:10 dustin-pham2511

I can reproduce the same underlying environment-catalog mismatch on the web only, without the CLI or desktop app.

Setup:

  • ChatGPT Plus
  • macOS
  • Firefox, latest version
  • No Codex CLI installed
  • No Codex desktop app installed

Reproduction:

  1. Go to https://chatgpt.com/settings/codex-cloud.
  2. Create and publish a new Codex Cloud environment.
  3. Confirm that the environment appears in the Codex Cloud settings page.
  4. Switch to Codex in the ChatGPT web UI.
  5. Open the environment selector above the “What should we build?” prompt.

Expected: The newly published Codex Cloud environments should be available for selection.

Actual: The selector only shows my older/legacy cloud environments. The newly created environments from Settings → Codex Cloud do not appear at all.

Additional observations:

  • The new environments are definitely present and editable under Settings → Codex Cloud.
  • The environment menu in the Codex web composer appears to be backed by a different, legacy environment catalog.
  • https://chatgpt.com/codex/cloud redirects to https://chatgpt.com with Codex selected and shows the same composer. It does not expose a separate Work in → Cloud flow or a selector containing the new environments.
  • This occurs entirely in the browser, so the issue is not specific to the CLI or desktop client.

This looks like the same catalog/backend split described here, and also matches the symptoms in #49966.

mauritium avatar Oct 04 '26 18:10 mauritium

I can report that as of this morning, I can now see the new cloud environment task selector in the Codex web interface.

mauritium avatar Oct 06 '26 08:10 mauritium

Quick follow-up: I reproduced this today with the official 0.162.0-alpha.18 Linux binary on NixOS/WSL2 (release checksum verified), using the same existing ChatGPT login as 0.160.1.

  • codex cloud list --env <new-env-id> --json still exits 1 with environment '…' not found in both versions.
  • The unfiltered list still returns older tasks, and a known existing task remains readable with status READY.
  • A completed new Cloud thread is accessible in the desktop app (hostId=durable), but absent from the CLI list. codex resume --all <thread-uuid> exits with No saved session found.

A cloud status <thread-uuid> probe still routes to /backend-api/wham/tasks/<uuid> and returns HTTP 404 / Invalid task ID. I’m not assuming a new thread UUID is valid for that task API; this just confirms the route being used.

I also checked the new Rust codex-cloud-client. Its README requires a native gRPC origin but doesn’t provide a production endpoint, so I haven’t tested it live.

Could you clarify the supported CLI path and ID mapping for the new Cloud? If the Rust client is the intended route, is there a documented public endpoint we can test?

servrox avatar Oct 07 '26 10:10 servrox

I have the same issue.

CLI: codex-cli 0.161.0, npm installation. Host: macOS 26.6, arm64. Account: ChatGPT Pro, personal workspace. I confirmed the CLI account and personal workspace match the account owning the published environment.

jim-eaton-home avatar Oct 08 '26 02:10 jim-eaton-home

We’re seeing the same issue on macOS with both 0.160.0 and the latest stable 0.162.0. The published new Cloud environment is visible in the app, but the CLI returns zero environments in both repository-specific and global discovery. We verified that the CLI is signed into the same ChatGPT account. Updating to 0.162.0 did not resolve it.

wx-alfred avatar Oct 09 '26 09:10 wx-alfred

If it can help someone, I found a temporary trick, while we're waiting the fix: just make an agent on both sessions and create a MCP relay between them. 😏

Lcfvs avatar Oct 12 '26 00:10 Lcfvs

+Additional reproduction on 12 October 2026 with the official stable codex-cli 0.162.1, ChatGPT Pro and a Personal workspace:

  • A private published environment ran a real coding task through the web interface, including a file edit, five passing assertions and a returned diff.
  • The Mac and remote Linux CLI account/user/default-workspace metadata match; the web profile agrees.
  • The CLI's global environment catalogue returns HTTP 200 with [], and repository discovery returns zero environments.
  • Filtered listing exits 1: "Error: no cloud environments are available for this workspace".
  • Unfiltered listing succeeds with {"tasks":[],"cursor":null}, omitting the completed web task.
  • Testing the correct GitHub origin and an isolated official 0.162.1 install did not repair discovery. Credentials and configuration were not changed.

Does the released CLI currently support environments published through the new Codex Cloud interface, or only the Legacy catalogue? If the new interface is supported, what exact supported command/version and identifier should launch a task AND retrieve its result? Is there a tracked fix or rollout for this catalogue discrepancy?

Please suggest a route that preserves the existing environment and authentication, without private endpoints or approval/sandbox bypass. Account, repository, environment and thread identifiers are intentionally omitted.

Eurostrokes avatar Oct 12 '26 21:10 Eurostrokes

I am having the same issue.

mariusmcl avatar Oct 14 '26 06:10 mariusmcl

this basically means you can't use codex cloud via cli - breaking my workflow completely :(

eyueldk avatar Oct 15 '26 15:10 eyueldk

We're experiencing the same issue. Our published Codex Cloud environments are visible in the app, but Codex CLI cannot discover them, which blocks our workflow. Please prioritize a fix or provide an officially supported workaround. Thanks.

eli-ttk avatar Oct 16 '26 14:10 eli-ttk

Reproduced on macOS arm64 with codex-cli 0.163.0, authenticated using ChatGPT. An environment is visible in current Codex Cloud settings, but the CLI picker shows only “All Environments (Global)”. Global and repository-specific environment discovery both return HTTP 200 with empty arrays. Attempting codex cloud exec with an explicit environment, branch, and one attempt exits 1: Error: no cloud environments are available for this workspace.

dwlf avatar Oct 17 '26 15:10 dwlf

Hi! Same here on Linux (standalone install) with codex-cli 0.162.1 and 0.163.0, ChatGPT Pro, personal workspace: a published new-type Cloud environment exists, but codex cloud shows no environments, /wham/environments (and the by-repo lookup) return [], and codex cloud exec --env … exits with "no cloud environments are available for this workspace". As far as I can tell, env_detect.rs on main still only queries the legacy catalog. Would you be open to adding CLI support for new Cloud environments, or could you point us to the supported way to launch tasks on them from the terminal? Thanks for all the work on Codex!

arditti avatar Oct 18 '26 11:10 arditti

Reproduced on codex-cli 0.163.0, Linux x86_64 (Ubuntu, kernel 6.8), ChatGPT auth (Pro, personal workspace), on two machines signed in to the same account, 2026-10-21.

  • codex cloud list --limit 5 returns No tasks found.
  • The codex cloud TUI environment picker (o) shows only All Environments (Global).
  • codex cloud exec --env <any id> "noop" exits 1 with Error: no cloud environments are available for this workspace.

The environments we created through the current web Codex Cloud flow are not discoverable from the CLI on either machine, which matches the legacy-catalog-only lookup described above. A supported way to submit a task to a current (non-Legacy) Cloud environment from the CLI would unblock scripted delegation for us.

RJDOC avatar Oct 22 '26 01:10 RJDOC

Same here...any workaround?

BluFinSolutions avatar Oct 22 '26 02:10 BluFinSolutions

Additional reproduction on October 23, 2026, on macOS using codex-cli 0.163.0.

A published current Codex Cloud environment is visible in Settings > Codex Cloud. A read-only lookup using the environment ID previously saved for our orchestration app:

codex cloud list --env <saved-environment-id> --limit 1 --json

exits 1 with:

Error: no cloud environments are available for this workspace

This blocks Bumble, our orchestration app, from launching parallel Codex Cloud workers through codex cloud exec. The legacy environment settings link redirects to ChatGPT's home page on this account, so we could not reach a legacy environment creation screen either. No task was submitted during this check.

Could the Codex team confirm a supported programmatic route for submitting tasks to current published cloud environments, checking status, and retrieving results? Is there a target fix version or rollout ETA for this discovery issue?

Account details, repository identifiers, credentials, and the actual environment ID are omitted.

heymoosh avatar Oct 23 '26 16:10 heymoosh

+1, same issue on codex-cli 0.164.0. Our envs were created in the new Codex app, and codex cloud exec --env <new env> just says "not found". Would really like CLI support for the new environments. Any ETA? Thanks!

kevinsslin avatar Oct 26 '26 04:10 kevinsslin

We're seeing this too. On the latest CLI, codex cloud only lists our legacy environments and rejects the new environment's ID, so our automation is stuck on the legacy env. Our main reason for wanting the new environments is runtime secret delivery: it would let cloud tasks push their own branches. Supporting current environments in codex cloud (listing them and submitting to them) would help.

joshsmith722 avatar Oct 26 '26 16:10 joshsmith722