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: use global socket manager instead of creating duplicate connection (#2925)

LearningCircuitb22a81564256
diff --git a/src/local_deep_research/web/static/js/research_form.js b/src/local_deep_research/web/static/js/research_form.js
index 7fb2e3410d..e982289ae1 100644
--- a/src/local_deep_research/web/static/js/research_form.js
+++ b/src/local_deep_research/web/static/js/research_form.js
@@ -181,10 +181,10 @@ function setupWarningListeners() {
});
}
- // Use Socket.IO to listen for settings changes if available (backup)
- if (typeof io !== 'undefined') {
- const socket = io();
- socket.on('settings_changed', function(data) {
+ // Use the global socket manager to listen for settings changes (backup)
+ const socketInstance = window.socket ? (window.socket.getSocketInstance() || window.socket.init()) : null;
+ if (socketInstance) {
+ socketInstance.on('settings_changed', function(data) {
// Update global settings cache
if (data.settings) {
Object.assign(globalSettings, data.settings);
@@ -192,9 +192,6 @@ function setupWarningListeners() {
// Recheck warnings with new settings
setTimeout(checkAndDisplayWarnings, 100);
});
-
- socket.on('connect', function() {
- });
}
}