Revive Dead Koi Frames and Add an Opt-In Vitals Overlay - #145
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
View your CI Pipeline Execution ↗ for commit 5d65ef3
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
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.
Description
On Android the OS can kill one koi's iframe mid-run; today that fish is gone until reload and the failure leaves no evidence. This PR makes the pond re-open a session whose frame died (with grace, backoff, and a cap) and adds an opt-in
?vitals=1diagnostics overlay that records session events, frame health, and context loss on the device, persisting its log across a page death.Type of Change
✨ Feature
Changes Made
resurrection.ts: re-opens a dead session after a 4s grace, backoff 4/12/36s, 3 attempts per episode, budget restored after 60s of stabilityvitals.ts+ styles: opt-in overlay with session log, 5s frame probe, buffer/heap readings, context-loss listeners, and a copyable persisted logpond.tsvia a new optionalonDiagnostichook; reset the open-retry budget on successful openTesting
Checklist
npm run commitfor conventional commit messagesAI Assistance
Claude was used to generate this code under direct supervision.
Additional Notes
📝 CLA Requirement
By submitting this pull request, you acknowledge that:
For more information, see our Contributing Guide.
Thank you for contributing to hyperfrontend! 🚀