feat(hint): unify the vs_ai idle hint online + offline (server-enforced, monotonic) #209

Merged
developer merged 2 commits from feature/online-vsai-hint into development 2026-07-06 23:04:38 +00:00
Showing only changes of commit 53311cbc95 - Show all commits
+3
View File
@@ -290,6 +290,9 @@
if (cached) {
view = cached.view;
moves = cached.moves;
// Arm the vs_ai idle-hint countdown from the cached seconds-left so the 🔒 shows at once on a
// warm open (no wait for load()); the cached value is a snapshot, refreshed by load() below.
armHintGate(cached.view.game.vsAi ? (cached.view.hintUnlockLeftSeconds ?? 0) : 0);
// Apply the cached draft synchronously so a warm/preloaded open paints the pending tiles
// already on the board (no full-rack-then-jump). load() then refreshes in the background.
applyDraft(cached.view, cached.draft ?? '');