fix(ai): keep request options and hold the useChat queue while sendAutomaticallyWhen decides #24857
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 · 254 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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #24857"
general
weight: 0.35
mangeshraut712
background
follow-up to #24595 for the two bot comments
sendAutomaticallyWhenwas still deciding, the chat looked idle, so a new message went out right away and a second request could start when the decision came back truesummary
sendAutomaticallyWhendecision as in progress for the queue, so messages sent meanwhile wait and go out once it settlesverification
before: the approval request had no
x-tenantheader ortenantbody, and a message sent during a slowsendAutomaticallyWhenstarted a second request. after: the approval request keeps both, and the message waits in the queue with one request at a time<details>
<summary>live run with the e2e routes and the real api</summary>
approval route, approve then send with
{ headers: { 'x-tenant': 't1' }, body: { tenant: 't1' } }queue route with a
sendAutomaticallyWhenthat takes 2s</details>
checklist
pnpm changesetin root)related issues
follow-up to #24595