Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(metrics): announce the real star-reviews load error; drop dead re-announce (#4828)

LearningCircuit8810e0811c4b
diff --git a/changelog.d/4828.bugfix.md b/changelog.d/4828.bugfix.md
new file mode 100644
index 0000000000..31d6157b92
--- /dev/null
+++ b/changelog.d/4828.bugfix.md
@@ -0,0 +1 @@
+**Star Reviews announces the real load error to screen readers.** A failed refresh now speaks the actual error message via the dashboard's live region instead of a generic "failed to load", and a no-op clear that never re-announced was removed.
diff --git a/src/local_deep_research/web/templates/pages/star_reviews.html b/src/local_deep_research/web/templates/pages/star_reviews.html
index 773d36cdcc..51601c7378 100644
--- a/src/local_deep_research/web/templates/pages/star_reviews.html
+++ b/src/local_deep_research/web/templates/pages/star_reviews.html
@@ -295,9 +295,6 @@ function announceChartStates() {
return el && el.style.display !== 'none';
})
.map(([, label]) => label);
- // Clear first so an identical message on a subsequent refresh still
- // registers as a change and is re-announced.
- region.textContent = '';
region.textContent = empty.length
? `Star reviews updated. No data yet for: ${empty.join(', ')}.`
: 'Star reviews updated.';
@@ -320,9 +317,11 @@ function showError(message) {
document.getElementById('content').style.display = 'none';
document.getElementById('error').style.display = 'block';
document.getElementById('error').textContent = message;
- // Announce the failure (and clear any stale "updated" text) for screen readers.
+ // Announce the actual failure via the persistent live region. (#error is
+ // display:none until shown, so a live role on it wouldn't reliably fire;
+ // #chart-status is always in the accessibility tree.)
const region = document.getElementById('chart-status');
- if (region) region.textContent = 'Star reviews failed to load.';
+ if (region) region.textContent = message;
}
function updateOverallStats(stats) {