Reset retried README when page data changes #14972
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.26) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.26 · 37 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 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.218
Real PR Conversation Timeline
2 items
Approved
good catch, thanks!
Turbo87
ai-yang
Fixes #14971.
A successful README retry overrides later route data while
CrateVersionPageis reused. Following an internal link to another crate or version can therefore display the previous README under the destination's heading.Use a writable
$derived(readmePromise)so a retry overrides only the current request and a new route promise resets the displayed content. Add Playwright coverage for navigation to another crate and to another version after a successful retry, checking the URL, heading, version, and README.Validation:
e2e/acceptance/readme-rendering.spec.tspass after the fix.Related: #13545 covers a different, previously closed Ember/history-navigation problem. This fix addresses the current Svelte retry state.
AI assistance was used to implement the fix, and write the regression tests.