You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up to #2936. This tightens two websocket bridge edge cases observed in production:
hand off an existing downstream websocket session to the HTTP/SSE bridge when a later response.create frame crosses the bridge threshold, so oversized continuation turns do not reach the upstream websocket and trigger StatusMessageTooBig;
prune pending tool-call context items that are not answered by the current replay input before sending HTTP bridge requests, avoiding upstream No tool output found for function call ... errors while preserving matched tool-call / tool-output pairs.
The downstream client connection still receives websocket messages; only the upstream transport switches to HTTP/SSE for the bridge path.
Tests
go test ./internal/service -run 'Test(OpenAIWSHTTPBridge|PruneOpenAIWSUnanswered)'
go test ./...
mvn compile was requested by the local AGENTS instructions, but this repository has no pom.xml and is not a Maven project.
I have read the CLA Document and I hereby sign the CLA
You only need to sign once — it will be valid for all your future contributions to this project.
I have read the CLA Document and I hereby sign the CLA
1 out of 2 committers have signed the CLA. ✅ (xlx0852)[https://github.com/xlx0852] ❌ @徐 徐 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.
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
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
Follow-up to #2936. This tightens two websocket bridge edge cases observed in production:
response.createframe crosses the bridge threshold, so oversized continuation turns do not reach the upstream websocket and triggerStatusMessageTooBig;No tool output found for function call ...errors while preserving matched tool-call / tool-output pairs.The downstream client connection still receives websocket messages; only the upstream transport switches to HTTP/SSE for the bridge path.
Tests
go test ./internal/service -run 'Test(OpenAIWSHTTPBridge|PruneOpenAIWSUnanswered)'go test ./...mvn compilewas requested by the local AGENTS instructions, but this repository has nopom.xmland is not a Maven project.