Skip to content

Use the shared HTTP client for TUI network checks - #35821

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b5c230b61e8964b3f1af3395052361ff716d6ce1
Jul 28, 2026
Merged

Use the shared HTTP client for TUI network checks#35821
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b5c230b61e8964b3f1af3395052361ff716d6ce1

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 28, 2026

Copy link
Copy Markdown

Use the shared HTTP client for TUI network checks

Why

TUI update checks and local OSS provider detection constructed their own HTTP
clients instead of using Codex's shared client behavior.

What changed

  • Route update requests through the configured route-aware client pool while
    retaining the existing default headers and custom CA fallback.
  • Probe the hardcoded LM Studio and Ollama loopback endpoints with a shared
    direct client and a per-request timeout.
  • Limit the legacy invalid-custom-CA fallback to the default routing policy so
    system-proxy routing still reports certificate configuration errors.

Testing

Add coverage for local provider probes with invalid CODEX_CA_CERTIFICATE and
SSL_CERT_FILE values, and for custom CA fallback under both routing policies.

## Why

TUI update checks and local OSS provider detection constructed their own HTTP
clients instead of using Codex's shared client behavior.

## What changed

- Route update requests through the configured route-aware client pool while
  retaining the existing default headers and custom CA fallback.
- Probe the hardcoded LM Studio and Ollama loopback endpoints with a shared
  direct client and a per-request timeout.
- Limit the legacy invalid-custom-CA fallback to the default routing policy so
  system-proxy routing still reports certificate configuration errors.

## Testing

Add coverage for local provider probes with invalid `CODEX_CA_CERTIFICATE` and
`SSL_CERT_FILE` values, and for custom CA fallback under both routing policies.

GitOrigin-RevId: b5c230b61e8964b3f1af3395052361ff716d6ce1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b5c230b61e8964b3f1af3395052361ff716d6ce1 branch from 886d7ce to 8bbdf6c Compare July 28, 2026 19:59
@copyberry
copyberry Bot merged commit 8bbdf6c into main Jul 28, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b5c230b61e8964b3f1af3395052361ff716d6ce1 branch July 28, 2026 20:00
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 28, 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.

3 participants