Reload WebViews without relaunching Wire Desktop [WPB-22420] - #9696
Merged
Conversation
Route refresh lifecycle events through the wrapper reload IPC channel while preserving full Electron relaunches for restart requests.
screendriver
requested review from
arjita-mitra,
e-maad,
otto-the-bot,
thisisamir98 and
zskhan
as code owners
July 14, 2026 08:05
screendriver
enabled auto-merge
July 14, 2026 08:06
|
zskhan
approved these changes
Jul 14, 2026
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.



Context
Wire WebApp uses query parameters such as
enabled-featuresfor startup feature toggles.When the WebApp requested a refresh, Wire Desktop previously received it as a restart request and relaunched the Electron application. The wrapper then reconstructed the WebApp URL from the configured environment, which removed the current WebView query parameters.
Changes
This adds support for
WebAppEvents.LIFECYCLE.REFRESH.The event is translated into the existing
EVENT_TYPE.WRAPPER.RELOADflow:The existing renderer implementation reloads each WebView in place. This preserves the current WebView URL and its query parameters.
The existing
LIFECYCLE.RESTARTtoWRAPPER.RELAUNCHflow remains unchanged for operations that require a genuine application restart.Result
Clicking "Update now" refreshes the WebApp without relaunching Wire Desktop.
Startup feature toggles and other WebView URL state remain available after the refresh, including when multiple accounts are open.
See also wireapp/wire-webapp#21838