feat(client-runtime): richer reconnect detail and 12h diagnostics log - #163
Merged
Conversation
Surface WebSocket close codes and ping timeouts in connection banner text, and retain short-lived disconnect events in localStorage for later inspection.
patroza
enabled auto-merge (squash)
July 29, 2026 07:07
patroza
disabled auto-merge
July 29, 2026 07:08
patroza
added a commit
that referenced
this pull request
Jul 29, 2026
…#163) Surface WebSocket close codes and ping timeouts in connection banner text, and retain short-lived disconnect events in localStorage for later inspection. Co-authored-by: T3 Code PR Stack <41898282+github-actions[bot]@users.noreply.github.com>
patroza
added a commit
that referenced
this pull request
Jul 29, 2026
…#163) Surface WebSocket close codes and ping timeouts in connection banner text, and retain short-lived disconnect events in localStorage for later inspection. Co-authored-by: T3 Code PR Stack <41898282+github-actions[bot]@users.noreply.github.com>
4 tasks
patroza
added a commit
that referenced
this pull request
Jul 29, 2026
…#163) Surface WebSocket close codes and ping timeouts in connection banner text, and retain short-lived disconnect events in localStorage for later inspection. Co-authored-by: T3 Code PR Stack <41898282+github-actions[bot]@users.noreply.github.com>
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.
Summary
1006 abnormal, ping timeouts) instead of only the genericdisconnected.message.Reconnecting.../Connection failed) and put the cause after a middle dot on the status line.localStoragewith a hard 12-hour retention window (max 400 events), plusEffect.logWarningfor console/traces.onDisconnectwas racing the browser close event and ignoring the forked EffectonPingTimeouthook, so every failure looked liket3vm disconnected.CaptureSocketError(close codes) +onPingTimeoutinto a sink before formatting.Root cause (Jaeger / host, 2026-07-29 storm)
Smart desktop logs showed 22× t3vm disconnects (~08:18–08:49 UTC) almost all as bare
transport/t3vm disconnected.After this fix they should sayt3vm ping timeout.orclosed (1006 abnormal).Guest Jaeger (
t3-server-vm) during the storm:runGitCommand/processRunnerspans per connection;subscribeVcsStatustraces multi‑minute.This PR makes the client truthful and inspectable. Ops follow-ups (not in this PR): guest memory pressure, VCS broadcaster fan-out, optional longer RPC ping interval.
Test plan
vp checkping timeoutor close code, not baredisconnected.t3code:connection-diagnostics:v1retains events ≤12h