This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Repository navigation
Web Experience Backstops & Telemetry - #7978
Merged
Merged
Conversation
Dependency Review✅ No vulnerabilities or OpenSSF Scorecard issues found.Scanned FilesNone |
jobelenus
force-pushed
the
jobelenus/theoretical-perpetual-lobby
branch
3 times, most recently
from
December 11, 2025 18:07
a0acec4 to
9bdac8d
Compare
jobelenus
marked this pull request as ready for review
December 11, 2025 18:10
jobelenus
force-pushed
the
jobelenus/theoretical-perpetual-lobby
branch
from
December 11, 2025 18:12
9bdac8d to
877b6b9
Compare
jobelenus
force-pushed
the
jobelenus/theoretical-perpetual-lobby
branch
2 times, most recently
from
December 11, 2025 18:29
0eccc4a to
9494120
Compare
Contributor
Author
|
@zacharyhamm brought up a good point. If a user has multiple tabs open on a workspace, we'll get multiple clients firing periodic updates to cold start I wanted the call for periodic updates in the client because we know what change set the user is looking at. We are going to add a call to the web worker interface for a per change set throttle to cold start. This way multiple clients could be polling, and we still don't over-call for cold starts. |
jobelenus
force-pushed
the
jobelenus/theoretical-perpetual-lobby
branch
2 times, most recently
from
December 11, 2025 21:54
b01110f to
e9dc909
Compare
wendybujalski
self-requested a review
December 11, 2025 22:54
jobelenus
force-pushed
the
jobelenus/theoretical-perpetual-lobby
branch
2 times, most recently
from
December 11, 2025 23:34
9704c0e to
2433c5d
Compare
jobelenus
marked this pull request as draft
December 11, 2025 23:37
jobelenus
force-pushed
the
jobelenus/theoretical-perpetual-lobby
branch
2 times, most recently
from
December 12, 2025 13:46
2c8b8e7 to
1f5088b
Compare
jobelenus
marked this pull request as ready for review
December 12, 2025 13:46
there is an outside chance that the system will fail to send a wsevent (incident, poor timing of a deploy, etc etc) to the web worker that tells it the index has been built successfully so we have a backup cold start interval here to prevent a user from being stuck in the lobby perpetually make sure we end a span in a no-op case bring back a disconnect notification for only SI cohort emit span events for when we open and close ws connections every 30 seconds, if we have not gotten index update messages, try to cold start, just in case this is a fail safe for clients that are not receiving messages. yes, in a quiet workspace this will make calls that result in nothing much happening. but its hitting a cache and its a small price to pay. 30 seconds might be the wrong number, but its something.
jobelenus
force-pushed
the
jobelenus/theoretical-perpetual-lobby
branch
from
December 12, 2025 14:03
1f5088b to
120c880
Compare
wendybujalski
approved these changes
Dec 12, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
How does this PR change the system?
mainthere is a bug where refreshing two tabs "at once". The first one gets stuck in the lobby. The tab that gets stuck has this in the console:The leader consensus succeeds after the cold start was called. Which mean the cold start never runs at all. We just needed to wait inside
heimdall.initso that we don't attempt a cold start before locks are acquired (and I lowered the timeouts in there). EDIT: We are still working this piece a bit, Zack is still getting hit with it. (It was onmainprior to this PR, too)IndexUpdate(e.g. the client has definitively received new data) clear & restart the interval.Things that shouldn't happen under normal circumstances
SDFinstances are being cycled, messages are dropped, WS connection is lost). Were any of those things to happen a user would sit in a lobby until they refreshed the page.Feature Flag:
show-ws-disconnect@ https://us.posthog.com/project/20369/feature_flags/287564How was it tested?
Disconnect notification
SDFin tiltOverride the feature flag to false and repeat—do not see the banner
Webworker changes
First scenario
Second scenario