Skip to content

Send warmup request#11258

Merged
pakrym-oai merged 35 commits intomainfrom
pakrym/send-warmup-request
Feb 24, 2026
Merged

Send warmup request#11258
pakrym-oai merged 35 commits intomainfrom
pakrym/send-warmup-request

Conversation

@pakrym-oai
Copy link
Collaborator

@pakrym-oai pakrym-oai commented Feb 10, 2026

Send a request with generate: falls but a full set of tools and instructions to pre-warm inference.

pakrym-oai and others added 30 commits February 9, 2026 16:53
Drop prewarm_websocket call from run_sampling_request, relying on startup
prewarm only. Update websocket_fallback tests to match reduced websocket
attempt count.
Create schedule_startup_prewarm to build the initial turn context,
router, prompt and RegularTask, and set it on SessionState. Call this
after session setup instead of constructing the prewarm task inline.
Also avoid mutating SessionState at creation time.
Convert `ResponsesApiRequest` to an owned, clonable struct and add `From<&ResponsesApiRequest>` for websocket requests. Replace `ResponsesRequest`/`ResponsesRawRequest` with direct use of `ResponsesApiRequest` plus a new `ResponsesOptions` for transport concerns, moving header and compression handling into `ResponsesClient::stream_request`. Update call sites and tests accordingly and expose `attach_item_ids` for reuse.
# Conflicts:
#	codex-rs/codex-api/src/lib.rs
#	codex-rs/core/src/client.rs
# Conflicts:
#	codex-rs/core/src/client.rs
#	codex-rs/core/src/codex.rs
Switch mention collection to return app IDs directly and use
collect_explicit_app_ids in run_turn. Update tests to pass an explicit
empty set of enabled connectors.
# Conflicts:
#	codex-rs/core/src/client.rs
# Conflicts:
#	codex-rs/core/src/client.rs
…equest

# Conflicts:
#	codex-rs/core/src/codex.rs
Switch `ResponseCreateWsRequest` from `deferred: bool` to optional `defer: Option<bool>` and update all websocket tests and callers accordingly. Add debug logging for websocket append incrementality failures. Change startup prewarm to use `built_tools`, falling back to `ToolRouter::from_config` on error, and update tests to submit turns with explicit sandbox policy.
# Conflicts:
#	codex-rs/core/src/codex.rs
…quest

# Conflicts:
#	codex-rs/core/src/client.rs
#	codex-rs/core/src/codex.rs
#	codex-rs/core/src/tasks/regular.rs
#	codex-rs/core/tests/suite/client_websockets.rs
Spawn startup prewarm construction on session init, storing a JoinHandle in SessionState. Await and handle errors when taking the startup_regular_task, and simplify RegularTask prewarm handling to store a prewarmed session directly instead of a spawned task.
Co-authored-by: Codex <noreply@openai.com>
Switch websocket request prewarm to v2-only behavior using generate=false, keep v1 prewarm connection-only, and update websocket tests for the new request chaining semantics.\n\nCo-authored-by: Codex <noreply@openai.com>
Inline websocket request handling in ModelClientSession::stream and drop unused send_websocket_request helper. Also remove obsolete module-level doc comment in turn_metadata.
Co-authored-by: Codex <noreply@openai.com>
…quest

# Conflicts:
#	codex-rs/core/src/codex.rs
Introduce WebsocketSession to store connection, last request, and last
response receiver together and cache this session across ModelClientSession
instances. Add test to ensure incremental websocket v2 requests are reused
across turns.
@pakrym-oai pakrym-oai enabled auto-merge (squash) February 24, 2026 15:53
@pakrym-oai pakrym-oai disabled auto-merge February 24, 2026 16:15
@pakrym-oai pakrym-oai merged commit 97d0068 into main Feb 24, 2026
35 of 39 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/send-warmup-request branch February 24, 2026 16:15
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 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