Skip to content

fix(wsrelay): reject incomplete responses and preserve status - #5776

Open
aikins01 wants to merge 1 commit into
router-for-me:devfrom
aikins01:wsrelay/reject-incomplete-responses
Open

aikins01 wants to merge 1 commit into
router-for-me:devfrom
aikins01:wsrelay/reject-incomplete-responses

Conversation

@aikins01

Copy link
Copy Markdown
Contributor

WebSocket relay aggregation currently returns buffered stream bytes as a successful non-stream response when the relay closes before a terminal event. That exposes truncated upstream data as a complete response.

This requires an explicit stream_end or http_response before returning success. It also preserves valid 400–599 relay error statuses through AI Studio streaming while leaving status-less connection failures untyped so they do not trigger credential cooldowns.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant