fix(ai): do not fail streamed requests on bad patching #11282
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 240 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #11282"
general
weight: 0.35
wconti27
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<!-- Please make sure your changes are properly tested -->
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<!--
PR title guidance:
use test: cover retries, not fix: cover retries.
such as fix(http, tests): handle retries.
- Tests: test(scope): description
- Benchmarks: bench(scope): description
- Documentation: docs(scope): description
- CI and workflows: ci(scope): description
- Build tooling: build(scope): description
- Maintenance: chore(scope): description
use test(http): cover retries, not fix(test): cover retries.
chore(eslint), chore(scripts), ci(release), ci(workflows), and test(integration-tests).
-->
What does this PR do?
<!-- A brief description of the change being made with this pull request. -->
Updates the stream patching for v7 of the AI SDK such that it does not lock the stream with the current
pipeThroughimplementation.Motivation
<!-- What inspired you to submit this pull request? -->
No GH issue yet, raised by automated version bumps. Unblocks that as well.