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(ui): use bulk API for help_dismissed settings to avoid 404s (#2759)

LearningCircuitcc0da79d9e78
diff --git a/src/local_deep_research/web/static/js/services/help.js b/src/local_deep_research/web/static/js/services/help.js
index b4f2230f16..2061eadd1e 100644
--- a/src/local_deep_research/web/static/js/services/help.js
+++ b/src/local_deep_research/web/static/js/services/help.js
@@ -116,24 +116,29 @@ const HelpService = (function() {
}
/**
- * Load dismissed states from backend
+ * Load dismissed states from backend using bulk API
* @param {Array<string>} panelIds - List of panel IDs to check
*/
async function loadDismissedStates(panelIds) {
- for (const panelId of panelIds) {
- const settingKey = STORAGE_PREFIX + panelId;
- try {
- const apiUrl = SETTINGS_API_BASE + encodeURIComponent(settingKey);
- const response = await fetch(apiUrl);
- if (response.ok) {
- const data = await response.json();
- if (data.value === true) {
- dismissedCache[panelId] = true;
+ if (panelIds.length === 0) return;
+
+ try {
+ const keys = panelIds.map(id => STORAGE_PREFIX + id);
+ const params = keys.map(k => 'keys[]=' + encodeURIComponent(k)).join('&');
+ const response = await fetch(SETTINGS_API_BASE + 'bulk?' + params);
+ if (response.ok) {
+ const data = await response.json();
+ if (data.success && data.settings) {
+ for (const panelId of panelIds) {
+ const setting = data.settings[STORAGE_PREFIX + panelId];
+ if (setting && (setting.value === true || setting.value === 'True' || setting.value === 'true')) {
+ dismissedCache[panelId] = true;
+ }
}
}
- } catch (e) {
- // Ignore fetch errors for individual settings
}
+ } catch (e) {
+ // Ignore fetch errors — panels will remain visible
}
}