Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 91adc48a80
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Review completed against the latest diff
Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed
Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
…ransport-task-group # Conflicts: # tests/httpx2/client/test_async_client.py
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
ASGITransportnow streams response bodies. Insideasync with, the app runs in a task group owned by the transport, and the response is returned as soon as the app sendshttp.response.start. This makes it possible to test SSE and other endpoints that never finish.The task group lives for the lifetime of the transport rather than inside an async generator per request. A task group held across
yieldbreaks when a response isn't closed in the same task. Onmain,TestASGIWebSocketTransport::test_httpfails that way on asyncio and on trio.http.disconnectto the app. Apps still running when the transport exits are cancelled.async with, the app runs to completion before the response is returned, as before.http.response.startis raised from the request. One raised after it is raised while reading the body, soclient.get()still raises it.ASGIWebSocketTransportreuses the base task group instead of managing its own.RuntimeErrorinstead of producing a truncated or synthetic500response.Behaviour changes:
async with, context variables set by the app are no longer visible to the caller.handle_async_requestthat is never closed is reported byanyiowith aResourceWarningonce it is garbage collected.Depends on #1270, which makes
AsyncClientunwind transports in reverse order, so several transports with task groups can be mounted together. This PR targets that branch until it merges.Supersedes #1032 and #1171. Addresses the long-standing upstream request encode/httpx#2186.
AI Disclaimer
This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.