From 56a948595003f5f751e21abd69d60911c2632045 Mon Sep 17 00:00:00 2001 From: Marker689 Date: Mon, 11 May 2026 21:12:53 +0300 Subject: [PATCH] fix: LLM spinner auto-polls status every 2s via htmx until analysis completes --- guarddog_nexus/routes/web.py | 2 +- guarddog_nexus/web/templates/_llm_spinner.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/guarddog_nexus/routes/web.py b/guarddog_nexus/routes/web.py index a7beb7a..0a70871 100644 --- a/guarddog_nexus/routes/web.py +++ b/guarddog_nexus/routes/web.py @@ -249,7 +249,7 @@ async def analyze_finding_htmx( ) if not retry and finding.report and finding.report.get("status") == "analyzing": - return _render("_llm_spinner.html", request=request) + return _render("_llm_spinner.html", request=request, finding_id=finding_id) async with _llm_lock: if finding_id not in _llm_locks: diff --git a/guarddog_nexus/web/templates/_llm_spinner.html b/guarddog_nexus/web/templates/_llm_spinner.html index 9e56a01..dd3f90b 100644 --- a/guarddog_nexus/web/templates/_llm_spinner.html +++ b/guarddog_nexus/web/templates/_llm_spinner.html @@ -1,3 +1,6 @@ -
+
{{ t('llm_analyzing', request.state.lang) }}