Repository navigation
Conversation
ab6d52c to
f1513d3
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f1513d3d75
ℹ️ 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".
f1513d3 to
8bf0f0d
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8bf0f0dad7
ℹ️ 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".
8bf0f0d to
03fce2c
Compare
03fce2c to
033d737
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b356efb8f
ℹ️ 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".
| else: | ||
| classify_unterminated_stream( | ||
| error_status="error", | ||
| error_code_value="client_disconnected", | ||
| error_message_value="Downstream client disconnected before response.completed", |
There was a problem hiding this comment.
Avoid classifying uncaught stream errors as client disconnects
This else branch runs in finally for any non-exhausted exit while the status is still success, not only for downstream cancellation. If an upstream iterator or post-event processing step raises an ordinary exception after a non-terminal event, _stream_once reaches this branch, logs client_disconnected, and suppresses account health handling before the outer stream wrapper emits upstream_error; the explicit CancelledError/GeneratorExit handler above already covers real disconnects, so this fallback should not relabel unrelated exceptions as downstream closes.
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
codex-lb/app/core/clients/proxy.py
Lines 2707 to 2709 in 741426b
When the upstream stream legitimately ends with an SSE error event, this new EOF check still appends a synthetic response.failed/stream_incomplete because the core terminal set only includes response.completed, response.failed, and response.incomplete (app/core/clients/proxy.py:99-105), while the service/spec explicitly treat error as terminal. In that scenario downstream clients receive an extra terminal failure and the later stream_incomplete can overwrite the real upstream error in settlement/logging, so this EOF path should not run after an observed error event.
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Superseded
This PR has been absorbed into #892 so Responses HTTP bridge and stream-correctness fixes land in one reviewable branch.
#892 now carries this PR's terminal-event requirement and
stream_incompletehandling for unterminated raw HTTP Responses streams.Relationship: