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: resolve false error detection in E2E tests and settings import 500 (#2192)

LearningCircuit98b2c7b70ca2
diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.py
index ef905cf4a3..da38b0d327 100644
--- a/src/local_deep_research/web/routes/settings_routes.py
+++ b/src/local_deep_research/web/routes/settings_routes.py
@@ -1075,12 +1075,9 @@ def api_import_settings():
username = session.get("username")
with get_user_db_session(username) as db_session:
settings_manager = SettingsManager(db_session)
- success = settings_manager.load_from_defaults_file()
+ settings_manager.load_from_defaults_file()
- if success:
- return jsonify({"message": "Settings imported successfully"})
- else:
- return jsonify({"error": "Failed to import settings"}), 500
+ return jsonify({"message": "Settings imported successfully"})
except Exception:
logger.exception("Error importing settings")
return jsonify({"error": "Failed to retrieve settings"}), 500
diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.js
index 57b640f57c..593b7236c1 100644
--- a/tests/puppeteer/test_deep_functionality.js
+++ b/tests/puppeteer/test_deep_functionality.js
@@ -342,8 +342,13 @@ describe('Deep Functionality Tests', function() {
currentUrl.includes('/results/') ||
currentUrl.includes('/report/');
- // Check for errors
- const hasError = bodyText.includes('error') || bodyText.includes('failed');
+ // Check for actual error state indicators set by progress.js
+ const hasError = await page.evaluate(() => {
+ const progressBar = document.querySelector('#progress-bar.bg-danger');
+ const statusEl = document.querySelector('#status-text');
+ const statusText = statusEl ? statusEl.textContent.toLowerCase().trim() : '';
+ return progressBar !== null || statusText === 'error' || statusText === 'failed';
+ });
// Extract status info
const statusMatch = bodyText.match(/(searching|processing|generating|analyzing|complete)/i);