Repository navigation
fix(proxy): emit text deltas for final response output - #504
Merged
Merged
Conversation
Owner
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ 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". |
Owner
|
@all-contributors please add @e1ektr0 for code, test |
Contributor
|
I've put up a pull request to add @e1ektr0! 🎉 |
This was referenced May 11, 2026
vitalNohj
pushed a commit
to vitalNohj/codex-lb
that referenced
this pull request
Jul 17, 2026
* fix(proxy): emit text deltas for final response output * test(proxy): update bridge stream delta expectations --------- Co-authored-by: Maxim Feofilov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
response.output_text.deltafor public Responses streams when upstream only provides assistant text in final output-item or terminal response output payloads.Related Issue
Issue Found
OpenCode's built-in OpenAI provider with
baseURLoverridden to codex-lb can complete a streamed/v1/responsesrequest with usage/finish metadata but no visible assistant content if the stream lacksresponse.output_text.deltaevents. In the captured incident, codex-lb 1.15.0 logged the maingpt-5.5request as successful with non-zero output/reasoning tokens, while OpenCode persisted onlystep-startandstep-finishparts.This matches the #430 class of new-session requests that appear successful/processed server-side but leave the client without a usable response.
Validation
uv run pytest tests\unit\test_proxy_api_responses_contract.py -quv run pytest tests\integration\test_proxy_responses.py -k "v1_responses_stream_preserves_done_text_events or v1_responses_stream_keeps_non_text_content_part_done_events" -quv run pytest tests\integration\test_http_responses_bridge.py::test_v1_responses_http_bridge_stream_matches_previous_response_error_to_anchor_with_two_followups -quv run pytest tests\integration\test_http_responses_bridge.py::test_v1_responses_http_bridge_cancellation_releases_queued_slot -quv run ruff check app\modules\proxy\api.py tests\unit\test_proxy_api_responses_contract.py tests\integration\test_http_responses_bridge.pyuv run ruff format --check app\modules\proxy\api.py tests\unit\test_proxy_api_responses_contract.py tests\integration\test_http_responses_bridge.pyopenspec validate fix-empty-public-response-stream --strictopenspec validate --specsNote: Running the full bridge slice locally on Windows now passes the changed assertions, but the run can hit an unrelated SQLite
database is lockedsetup error after many tests. The CI bridge slice runs on Ubuntu.