You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: server restart crash + bundle WebView2 offline for stripped Windows
Server restart (os error 98):
- Replace broken oneshot shutdown with CancellationToken in server.rs
The TCP accept loop now exits immediately on cancel(), dropping the
TcpListener and releasing port 24800 right away. Previously the
_shutdown_rx was dropped on creation so cancel() was a no-op and
the socket stayed open forever.
- cmd_start_server auto-stops any existing server before starting a
new one — "Start Server" always works, no manual stop required.
WebView2 on stripped Windows (Windows Lite, no Microsoft services):
- Add webviewInstallMode offlineInstaller at bundle.windows level.
The full WebView2 runtime is now bundled in the NSIS .exe installer.
No internet, no Microsoft account, no pre-installed WebView2 needed.
- Update NSIS hook to reflect offline bundling (no download warning).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
**Windows/Linux — Server restart (os error 98 "Address already in use"):**
15
+
- Stopping and restarting the server showed "Address already in use" error — the TCP accept loop held port 24800 open indefinitely because the shutdown signal was never delivered (the oneshot receiver was immediately dropped). Replaced the broken oneshot with a `CancellationToken`; the TCP loop now exits and drops the `TcpListener` the instant `Stop Server` is clicked, releasing the port immediately.
16
+
-`Start Server` now auto-stops any previously running server instead of returning "Server already running" — clicking Start Server always works even if a prior session wasn't explicitly stopped.
17
+
18
+
**Windows — WebView2 required even on stripped Windows (Windows Lite, etc.):**
19
+
- The app required WebView2 to be pre-installed or downloaded from the internet, breaking on lightweight/locked-down Windows installations. Switched NSIS installer to `offlineInstaller` mode — the full WebView2 runtime is now bundled inside the `.exe` installer (~150 MB total). No internet connection, no Microsoft services, and no manual WebView2 installation required.
0 commit comments