Repository navigation
feat(web): detect workbench session expiration and support reopening - #917
Merged
Merged
Conversation
Detect backend Workbench in-memory session expiration and guide user to reconnect. - Periodically ping backend via heartbeat RPC (5-minute interval). - Pause heartbeats when the tab is hidden and resume on visibility/focus. - Proactively and reactively detect expired sessions (Code.NotFound / inactive heartbeat). - Display a modal dialog (SessionTimedOut) allowing the user to reconnect and reload the dataset without losing frontend state, or return to startup. - Track progress during reopening using ProgressDialog.
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a session timeout handling mechanism, including a new timeout dialog layout and smart component, a dialog service to monitor session expiration, and updates to the workbench client service to support heartbeats and session reopening. The review feedback highlights several critical race conditions and logic improvements, such as preventing heartbeat restarts on expired sessions, adding defensive checks to handle session closure during in-flight reconnections, fixing a dialog reference race condition on close, and disabling navigation buttons during active reconnection attempts.
kyasbal
marked this pull request as ready for review
August 27, 2026 05:22
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 27, 2026 05:22
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
This PR detects backend in-memory Workbench session expiration (e.g. after a 15-minute inactivity sweep) and guides the user to reconnect without losing their frontend inspection state.
Key Changes
Code.NotFound).khi-session-timed-out):reopenWorkbench()with live progress reporting viaProgressDialogStatusUpdator.SessionTimeoutDialogServiceto monitorisWorkbenchExpiredsignal and manage dialog lifecycle.SessionTimedOutLayoutComponent,SessionTimedOutSmartComponent,SessionTimeoutDialogService, andWorkbenchClientService.