From 2f70ef1b85f25f5b5daafd3b396136e7603154da Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Mon, 6 Jul 2026 14:04:23 +0200 Subject: [PATCH] fix(offline): route word-check through the game source; reload lobby on offline flip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two offline bugs found on the contour: - The word-check screen (CheckScreen) called gateway.gameState/checkWord directly, so in an offline (local) game it hit the network and errored ("something went wrong"). Route both through gameSource(id) — the local source answers from the device dawg. The complaint control (online-only, no offline backend) is hidden for a local game. - The lobby did not react to the offline-mode toggle (which lives in Settings, so the lobby can stay mounted): an online game lingered until the next reload. Reload on an offlineMode flip so entering offline immediately shows only device-local games. Cold offline launch hanging on the splash (boot still fetches the profile over the network) is the separate C2 offline-boot follow-up (needs a persisted profile + a boot short-circuit). --- ui/src/game/CheckScreen.svelte | 15 +++++++++++---- ui/src/screens/Lobby.svelte | 12 ++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/ui/src/game/CheckScreen.svelte b/ui/src/game/CheckScreen.svelte index 67a5a2a..b16d471 100644 --- a/ui/src/game/CheckScreen.svelte +++ b/ui/src/game/CheckScreen.svelte @@ -1,6 +1,7 @@