Skip to content

Route cloud environment discovery through the HTTP client pool - #34491

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2e6812015ec3eb01773184541a1fad135ed53edb
Jul 21, 2026
Merged

Route cloud environment discovery through the HTTP client pool#34491
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2e6812015ec3eb01773184541a1fad135ed53edb

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 21, 2026

Copy link
Copy Markdown

Route cloud environment discovery through the HTTP client pool

What changed

  • Build a route-aware API client from the cloud backend's configured HTTP
    factory and reuse it for environment listing and autodetection.
  • Replace direct reqwest environment requests with a small injectable HTTP
    boundary while preserving status, content-type, body, and header handling.
  • Centralize asynchronous environment-list loading around the initialized
    backend context.

Testing

  • Add coverage for production header forwarding and response decoding.
  • Verify repository-specific lookup, global fallback, endpoint selection,
    deduplication, and merged environment metadata with a fake HTTP client.
## What changed

- Build a route-aware API client from the cloud backend's configured HTTP
  factory and reuse it for environment listing and autodetection.
- Replace direct `reqwest` environment requests with a small injectable HTTP
  boundary while preserving status, content-type, body, and header handling.
- Centralize asynchronous environment-list loading around the initialized
  backend context.

## Testing

- Add coverage for production header forwarding and response decoding.
- Verify repository-specific lookup, global fallback, endpoint selection,
  deduplication, and merged environment metadata with a fake HTTP client.

GitOrigin-RevId: 2e6812015ec3eb01773184541a1fad135ed53edb
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2e6812015ec3eb01773184541a1fad135ed53edb branch from 08146c2 to 0e15c31 Compare July 21, 2026 08:37
@copyberry
copyberry Bot merged commit 0e15c31 into main Jul 21, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2e6812015ec3eb01773184541a1fad135ed53edb branch July 21, 2026 08:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants