Skip to content

fix(combo): fall back on Responses SSE failures - #7172

Closed
rushsinging wants to merge 3 commits into
diegosouzapw:mainfrom
rushsinging:fix/combo-responses-sse-failure-fallback
Closed

rushsinging wants to merge 3 commits into
diegosouzapw:mainfrom
rushsinging:fix/combo-responses-sse-failure-fallback

Conversation

@rushsinging

@rushsinging rushsinging commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • reject Responses-compatible SSE streams that report an upstream failure before useful output
  • let the existing Combo flow advance to the next model instead of treating the HTTP 200 stream as successful
  • preserve the current no-fallback behavior after useful output starts, avoiding duplicate partial output

The detector covers response.failed events, event:error envelopes, top-level error payloads, and nested failed/error response states. It reports a generic validation reason and does not expose the upstream error message.

Evidence

  • 29 passing, 0 failing across the focused and adjacent Combo response-quality unit tests
  • npm run typecheck:core — passed
  • targeted ESLint checks — passed

No docs/superpowers files are included.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces upstream error detection for SSE streams in validateResponseQuality, allowing the combo service to failover early when encountering pre-content errors. It also adds comprehensive unit tests in tests/unit/ to validate this behavior. The review feedback correctly identifies a potential runtime TypeError in the new isStreamingUpstreamError helper if the parsed payload is not a plain object, and provides a robust code suggestion to safely guard the property checks.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread open-sse/services/combo/validateQuality.ts Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@rushsinging
rushsinging marked this pull request as ready for review July 14, 2026 17:28
@rushsinging
rushsinging marked this pull request as draft July 14, 2026 17:37
@rushsinging
rushsinging marked this pull request as ready for review July 14, 2026 17:50
@rushsinging

Copy link
Copy Markdown
Contributor Author

Superseded by #7256, which ports the same fix onto release/v3.8.49.

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