Repository navigation
fix(providers): preserve structured streaming error diagnostics - #2377
Merged
Merged
Conversation
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[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.
Why
Prior hardening flattened SDK
ssestream.StreamErrorvalues to a generic error. This restores typed decoding of structured streaming envelopes while keeping display text safe: JSON/schema/network categories and the in-band error origin are preserved without exposing raw secrets. The SDK cause and response correlation remain unwrap-visible; transient failures retry only before output and never replay visible output. Context-window overflow remains a retry and breaker-neutral veto.Synthetic real-SDK and HTTP-relay coverage protects these paths without recording raw secrets.
API compatibility
Existing error detail text is refined, and previously lost nested in-band metadata/classifications are recovered. There are no wire or public Go API changes, stored-data schema changes, major or feature identifier changes, client upgrade or migration requirements, or breaking-change approval needed. The compatibility advisory is satisfied.
Validation
task lint,task docs,task build, and the offline demo passed.task testfailed pending launch receipt fixtures:TestLaunchOwnershipIdentityMismatchIsUntouchedandTestLaunchOwnershipFixtureLifecycleLeavesNoHelpers/ parent-exit (nestedTestLaunchOwnershipFixtureCleanupMutant). Later reruns reported passing; no causal claim is made.task test:racetimed out at 600 seconds; it is not green.Review
No blockers found.