From ebf6667f8f18296c2887db234760342f7ae8f691 Mon Sep 17 00:00:00 2001 From: Dorian Date: Fri, 13 Mar 2026 23:56:08 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20wire=20SSE=20for=20bot=20fights=20on=20m?= =?UTF-8?q?ount=20=E2=80=94=20rounds=20weren't=20displayed=20in=20practice?= =?UTF-8?q?=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wireSSE() was only called for human fights in onMounted, so bot fights (webhook/poll mode) never received round_start/round_end events. The fight ran server-side but the frontend showed nothing. Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/FightPage.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/FightPage.vue b/frontend/src/pages/FightPage.vue index 1576fce..e51fea8 100644 --- a/frontend/src/pages/FightPage.vue +++ b/frontend/src/pages/FightPage.vue @@ -528,11 +528,9 @@ onMounted(async () => { if (isLive.value) { startPolling({ onFinished: () => stopHumanPolling(), onTimeout: () => stopHumanPolling(), keepLive: isHumanFight.value }) - if (isHumanFight.value) { - wireSSE() - // Scene init + human polling are handled by the liveFightData watcher - // (avoids double init if loadFight already set liveFightData) - } + wireSSE() + // Scene init + human polling are handled by the liveFightData watcher + // (avoids double init if loadFight already set liveFightData) } })