Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Nov 6, 2025

Waiting for EOF wastes us some time because it can take ~2 to comeback. We know for sure that we don't expect anything after response.completed. Keep the logic of EOF also in case we didn't get response.completed.

This shouldn't affect the connection pool because we drop the response body.

@aibrahim-oai aibrahim-oai changed the title Fix timeout Return early on task complete Nov 6, 2025
@etraut-openai etraut-openai added the oai-pr PRs posted by Codex team members label Nov 6, 2025
@aibrahim-oai aibrahim-oai marked this pull request as ready for review November 6, 2025 19:13
token_usage: usage.map(Into::into),
};
let _ = tx_event.send(Ok(event)).await;
Some(completed) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does this branch need to exist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai-pr PRs posted by Codex team members

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants