From 1a3170f1c3caaad2098e2b907dfa4d64d4016691 Mon Sep 17 00:00:00 2001 From: archipelago Date: Thu, 16 Jul 2026 17:42:57 -0400 Subject: [PATCH] fix(ui): companion popup waits for sustained calm; connection banner stops crying wolf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two "unpolished" moments, worst on the demo: - CompanionIntroOverlay gated on a point-in-time check of the reveal cinematic flag. On a cold cache the entrance video can start buffering after the 5s base delay, so the flag was still false when sampled and the popup cut into the cinematic anyway. It now shows only after the scene has been continuously calm for the full grace window. - ConnectionBanner's flat 2.5s debounce fired on every tab-return and on first dashboard paint: a dead WebSocket is the NORMAL state right then (browsers kill background-tab sockets; first paint races the initial connect), and reconnects routinely exceed 2.5s over real links. Those moments now get a 10s runway (15s window after load/resume); genuine mid-session drops keep the 2.5s response. On the demo the blip banner is suppressed entirely — it runs against a local mock, so "Connection lost" there is pure noise. Co-Authored-By: Claude Fable 5 --- .../src/components/CompanionIntroOverlay.vue | 40 ++++++++++++------- .../src/views/dashboard/ConnectionBanner.vue | 29 +++++++++++++- 2 files changed, 52 insertions(+), 17 deletions(-) diff --git a/neode-ui/src/components/CompanionIntroOverlay.vue b/neode-ui/src/components/CompanionIntroOverlay.vue index c0ace1a1..28185b0f 100644 --- a/neode-ui/src/components/CompanionIntroOverlay.vue +++ b/neode-ui/src/components/CompanionIntroOverlay.vue @@ -75,7 +75,7 @@