Skip to content

Add saved environment listing to the Cloud client - #61940

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ca7793a53eade36ba510a53b4a827f945a109072
Nov 17, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ca7793a53eade36ba510a53b4a827f945a109072

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Add saved environment listing to the Cloud client

What changed

Add Client::list_saved_environments and export SavedEnvironment with each environment's ID, name, and workspace-sharing status.

  • Fetch personal and workspace environments from the authenticated /v1/environment-configs picker API, following pagination independently for each scope.
  • Request non-draft configurations and filter out the default environment, empty IDs, and blank names.
  • Bound the catalog request to 10 seconds and each response page to 1 MiB. Return EnvironmentCatalogUnavailable for request, parsing, or limit failures and repeated cursors.

Testing

Add a client test covering pagination, cursor encoding, scope ordering, default-environment filtering, workspace-sharing status, and authenticated request headers.

## What changed

Add `Client::list_saved_environments` and export `SavedEnvironment` with each environment's ID, name, and workspace-sharing status.

- Fetch personal and workspace environments from the authenticated `/v1/environment-configs` picker API, following pagination independently for each scope.
- Request non-draft configurations and filter out the default environment, empty IDs, and blank names.
- Bound the catalog request to 10 seconds and each response page to 1 MiB. Return `EnvironmentCatalogUnavailable` for request, parsing, or limit failures and repeated cursors.

## Testing

Add a client test covering pagination, cursor encoding, scope ordering, default-environment filtering, workspace-sharing status, and authenticated request headers.

GitOrigin-RevId: ca7793a53eade36ba510a53b4a827f945a109072
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ca7793a53eade36ba510a53b4a827f945a109072 branch from 9abc978 to 9b2d2c1 Compare November 17, 2026 02:01
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit 9b2d2c1 into main Nov 17, 2026
9 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ca7793a53eade36ba510a53b4a827f945a109072 branch November 17, 2026 02:01
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant