Skip to content

[codex] Add response.processed websocket request#21284

Merged
pakrym-oai merged 5 commits into
mainfrom
pakrym/response-processed-ws
May 6, 2026
Merged

[codex] Add response.processed websocket request#21284
pakrym-oai merged 5 commits into
mainfrom
pakrym/response-processed-ws

Conversation

@pakrym-oai

Copy link
Copy Markdown
Collaborator

Summary

  • Add a response.processed websocket request payload and sender for Responses API websockets.
  • Send response.processed from try_run_sampling_request after a response completes, local turn processing succeeds, and the session-owned feature flag is enabled.
  • Add websocket coverage for both enabled and disabled feature-flag behavior.

Validation

  • just fmt
  • cargo test -p codex-core response_processed
  • cargo test -p codex-api responses_websocket
  • cargo test -p codex-features responses_websocket_response_processed_is_under_development
  • git diff --check
  • just fix -p codex-api -p codex-core -p codex-features
  • git diff --check origin/main...HEAD

@pakrym-oai pakrym-oai force-pushed the pakrym/response-processed-ws branch from 74bd628 to 6b2d486 Compare May 6, 2026 01:40
@pakrym-oai pakrym-oai marked this pull request as ready for review May 6, 2026 01:43
@pakrym-oai pakrym-oai requested a review from a team as a code owner May 6, 2026 01:43

@jif-oai jif-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after my nits

Comment thread codex-rs/core/src/session/turn.rs
));
};

send_websocket_request(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also clears failed ws here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how I wrote code initially but decided that it would be simpler to let the next request retry if needed.

@pakrym-oai pakrym-oai merged commit 2070d5b into main May 6, 2026
25 of 26 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/response-processed-ws branch May 6, 2026 16:58
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 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