codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex Cloud environment catalogs differ between CLI, desktop, and web (CLI 0.160.1)

Open ibarani opened this issue 1 month ago • 6 comments

What issue are you seeing?

The Codex CLI, desktop app, and browser show different Cloud environment catalogs. The CLI shows older/Legacy environments that do not appear in the desktop/browser views being used; environments available in the newer experience are not discoverable from the CLI. This prevents locating the intended new Cloud environment consistently across clients.

This is an additional affected-user report related to #50182 and #49966, with source checks for CLI 0.160.1 and 0.162.0-alpha.16. Please consolidate with the appropriate issue if these share a cause.

Observed on October 6, 2026:

  • Installed CLI: codex-cli 0.160.1.
  • Local platform: Linux 6.8.0-139-generic x86_64.
  • The owner reports the reciprocal catalog visibility difference described above.
  • An earlier read-only lookup using codex cloud list --env <environment-id> --json returned no cloud environments are available for this workspace. That lookup predates recreation of the environment; it is not a fresh check of the replacement.
  • The CLI and new Cloud UI were previously checked against the same ChatGPT email. Exact workspace equivalence has not been independently established.

Desktop/browser observations are owner-reported. CLI version and the source comparisons below were checked directly. Exact desktop/browser versions and the replacement environment's current publication state were not captured.

What steps can reproduce the bug?

Reported workflow:

  1. Use an account with older/Legacy Cloud environments and an environment created in the newer Cloud experience.
  2. Compare the environments under Settings > Codex Cloud with those offered by the desktop and browser task selectors.
  3. Open codex cloud and inspect its environment picker without submitting a task.
  4. Compare the catalogs. In this case, the CLI exposes the older environments while the newer environment is unavailable there, and the UI views being used do not expose those same older environments.

codex cloud list --json lists tasks, so an empty task list alone should not be treated as an environment inventory.

What is the expected behavior?

Accessible, published environments should be discoverable consistently on supported clients. If the CLI intentionally supports only Legacy environments, its picker, errors, and documentation should explicitly say so and point to the supported new Cloud launch path.

Please clarify whether new Cloud environments can currently be selected from the released CLI, which identifier/command is supported, and which desktop/web route reliably selects the new catalog.

Additional information

Source checks performed without installing an alpha or submitting a task:

  • env_detect.rs in 0.160.1 and 0.162.0-alpha.16 are byte-identical: SHA-256 bec745603121226f7edd770e0132a3cea1a78906b1425df6dcbbd54c61e22ce2.
  • That code queries /wham/environments and its repository-specific route when the base URL contains /backend-api; otherwise it uses /api/codex/environments. It does not query the /api/codex-cloud/v1/environment-configs route reported for the new settings catalog in #50182.
  • resolve_environment_id in 0.160.1 resolves --env against the fetched catalog and rejects an empty catalog before matching the supplied identifier. Supplying an ID therefore does not bypass catalog discovery.
  • A different user reported restored browser selector visibility on October 6. This has not been verified for this account or the CLI.
  • The current environment guide documents Work in > Cloud for desktop/web and distinguishes the Legacy experience.

The evidence is consistent with a Legacy/new Cloud catalog mismatch, but does not establish the account-specific backend cause or rule out workspace/publication differences. No credentials, private repository contents, account identifiers, or environment identifiers are included.

ibarani avatar Oct 07 '26 05:10 ibarani

Ran into the issue because I wasn't able to use a cloud environment in CLI. Any workarounds yet? This issue looks to be a week old and no movement from OpenAI

eyueldk avatar Oct 15 '26 14:10 eyueldk

Still only has Legacy Cloud Env on my Codex CLI.

realTaki avatar Oct 21 '26 21:10 realTaki

Reproduced the same issue in codex-cli 0.166.0 on Windows using an isolated installation and successful ChatGPT authentication. The current published Cloud environment remains visible in web settings, but codex cloud list --env --limit 5 --json returns environment not found. The codex cloud environment picker shows only Global and our Legacy environment. Same result as 0.165.0; no configuration changes or workarounds were applied.

DanCrafting avatar Oct 29 '26 20:10 DanCrafting

Confirmed again with codex-cli 0.168.0 on Windows using an isolated installation and successful ChatGPT authentication. Our published private environment is visible in current Codex Cloud web settings, but codex cloud list --env --limit 5 --json returns environment not found. The CLI environment picker still shows only Global and our Legacy environment. Same result as 0.167.0; no Cloud configuration changes were made.

dantbh avatar Nov 13 '26 10:11 dantbh

Confirmed the same issue in codex-cli 0.170.0 on Windows using an isolated installation and successful ChatGPT authentication.

A private test environment is visible in current Codex Cloud web settings, but codex cloud list --env <environment-name> --limit 5 --json returns environment not found. The CLI picker lists only Global and a Legacy environment; the current Cloud environment is absent.

Same result as 0.169.0. No workarounds or Cloud configuration changes were applied.

dantbh avatar Nov 18 '26 14:11 dantbh

I ran the newest alpha (0.174.0-alpha.7) live on Titan and it still says "environment not found".

andrew-za avatar Nov 26 '26 11:11 andrew-za