fix(marketing): recover downloads from stalled release requests - #196
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR makes marketing release metadata loading resilient: concurrent download links share one request, stalled response headers or body decoding fall back to the GitHub Releases page after five seconds, and later requests can succeed. The focused release behavior is covered by automated checks. Confidence Score: 5/5Safe to merge. The changed release-link behavior was exercised through stalled header and response-body scenarios, fallback clickability, and successful retries. No defects were established. The focused checks confirm the intended timeout, fallback, shared-request, and retry behavior. Files Needing Attention: None.
What T-Rex did
Reviews (1): Last reviewed commit: "fix(marketing): recover downloads from s..." | Re-trigger Greptile |
Problem
A stalled GitHub release request leaves the homepage and download page waiting indefinitely, with download links disabled. Concurrent callers also issue duplicate requests, and unavailable session storage can prevent otherwise valid downloads.
Changes
Bound the complete release request, including body decoding, to five seconds so existing release-page fallback links become usable. Share an in-flight request, retain successful results in memory, tolerate unavailable or invalid session storage, and allow failed requests to retry.
Verification
/and/download/at 1280px and 390px. Stalled requests enabled fallback navigation after 5.005–5.015 seconds. Successful requests were shared across routes and reloads; install-dialog close/reopen/Escape and download cancellation passed with no page errors.Before and after
The same stalled GitHub response was observed for 6.5 seconds on unchanged main and this PR. Before, links remain disabled and the page says it is loading. After, the five-second deadline enables the release-page fallback. The recordings use isolated Chromium with identical 1280×900 viewports and fixture requests; no timing overlays or application code were injected.
Before:

After:

Before recording:
prg-release-before.webm
After recording:
prg-release-after.webm
Implemented and verified by gpt-6-astra in T3 Code through the Grok harness.