Skip to content

Route pet asset downloads through the shared HTTP client - #36008

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/725e76f3ddb7e84b7212769892f28dc0add15741
Jul 29, 2026
Merged

Route pet asset downloads through the shared HTTP client#36008
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/725e76f3ddb7e84b7212769892f28dc0add15741

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 29, 2026

Copy link
Copy Markdown

Route pet asset downloads through the shared HTTP client

Why

Built-in pet downloads used a standalone blocking client, so CDN redirects did
not use Codex's configured route handling.

What changed

  • Download pet spritesheets asynchronously with a reusable
    RouteAwareClientPool.
  • Keep cache validation, asset installation, and pet decoding off the async
    runtime while sharing one asset-and-load path across startup, previews, and
    selection.
  • Preserve the download size limit while consuming streamed response chunks,
    and remove the TUI's direct reqwest dependency.

Testing

Add coverage for oversized response chunks, cached built-in assets, pet loads
without an existing Tokio runtime, and stale preview and selection completions.

## Why

Built-in pet downloads used a standalone blocking client, so CDN redirects did
not use Codex's configured route handling.

## What changed

- Download pet spritesheets asynchronously with a reusable
  `RouteAwareClientPool`.
- Keep cache validation, asset installation, and pet decoding off the async
  runtime while sharing one asset-and-load path across startup, previews, and
  selection.
- Preserve the download size limit while consuming streamed response chunks,
  and remove the TUI's direct `reqwest` dependency.

## Testing

Add coverage for oversized response chunks, cached built-in assets, pet loads
without an existing Tokio runtime, and stale preview and selection completions.

GitOrigin-RevId: 725e76f3ddb7e84b7212769892f28dc0add15741
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/725e76f3ddb7e84b7212769892f28dc0add15741 branch from 4651985 to 09cf609 Compare July 29, 2026 18:40
@copyberry
copyberry Bot merged commit 09cf609 into main Jul 29, 2026
31 of 32 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 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.

2 participants