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 Safari CI test failures from duplicate scripts and mobile overflow (#2682)

LearningCircuit92105b72d120
diff --git a/src/local_deep_research/web/static/css/mobile-responsive.css b/src/local_deep_research/web/static/css/mobile-responsive.css
index 1df4f65212..291f6774d1 100644
--- a/src/local_deep_research/web/static/css/mobile-responsive.css
+++ b/src/local_deep_research/web/static/css/mobile-responsive.css
@@ -1145,7 +1145,8 @@
.ldr-form-group.ldr-half,
.ldr-advanced-options-panel .ldr-form-group.ldr-half {
width: 100% !important;
- max-width: calc(100% - 0px) !important;
+ min-width: 0 !important;
+ max-width: 100% !important;
flex-basis: 100% !important;
flex: 0 0 100% !important;
padding-left: 0 !important;
diff --git a/src/local_deep_research/web/static/css/settings-mobile-fix.css b/src/local_deep_research/web/static/css/settings-mobile-fix.css
index 9716fff845..7942178d5f 100644
--- a/src/local_deep_research/web/static/css/settings-mobile-fix.css
+++ b/src/local_deep_research/web/static/css/settings-mobile-fix.css
@@ -93,6 +93,34 @@
max-height: none !important;
overflow: visible;
}
+
+ /* Prevent horizontal overflow on mobile (390px viewport) */
+ /* Label max-width: settings.css sets 400px which exceeds mobile viewport */
+ .ldr-settings-item-header label {
+ max-width: 100% !important;
+ white-space: normal !important;
+ }
+
+ /* Section title: settings.css sets max-width:80% + nowrap which can overflow */
+ .ldr-settings-section-title {
+ max-width: 100% !important;
+ white-space: normal !important;
+ }
+
+ /* Settings cards grid: settings.css sets minmax(300px, 1fr) which exceeds 390px */
+ .ldr-settings-cards {
+ grid-template-columns: 1fr !important;
+ }
+
+ /* Settings row grid: settings.css sets minmax(300px, 1fr) */
+ .ldr-settings-row {
+ grid-template-columns: 1fr !important;
+ }
+
+ /* JSON property grid: settings.css sets minmax(250px, 1fr) */
+ .ldr-json-property-controls {
+ grid-template-columns: 1fr !important;
+ }
}
/* Specific fix for very small devices */
diff --git a/src/local_deep_research/web/static/js/services/api.js b/src/local_deep_research/web/static/js/services/api.js
index b69917ed42..7339e620f4 100644
--- a/src/local_deep_research/web/static/js/services/api.js
+++ b/src/local_deep_research/web/static/js/services/api.js
@@ -4,10 +4,12 @@
* Note: URLValidator is available globally via /static/js/security/url-validator.js
*/
-// Base URL for API - use existing one if already declared
-const API_BASE_URL = (typeof window !== 'undefined' && typeof window.API_BASE_URL !== 'undefined')
- ? window.API_BASE_URL
- : '/api';
+// Base URL for API - guard against duplicate script loading (same pattern as urls.js)
+if (typeof API_BASE_URL === 'undefined') {
+ var API_BASE_URL = (typeof window !== 'undefined' && typeof window.API_BASE_URL !== 'undefined')
+ ? window.API_BASE_URL
+ : '/api';
+}
/**
* Get CSRF token from meta tag
diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.html
index 86e39119f9..7b2909623e 100644
--- a/src/local_deep_research/web/templates/pages/benchmark.html
+++ b/src/local_deep_research/web/templates/pages/benchmark.html
@@ -2932,8 +2932,7 @@ function saveEvaluationSetting(key, value) {
{% endblock %}
{% block page_scripts %}
-<!-- Load required services for progress tracking -->
+<!-- formatting.js, api.js, socket.js already loaded by base.html -->
<script defer src="/static/js/services/audio.js"></script>
-<!-- Load custom dropdown component for evaluation model selection -->
<script defer src="/static/js/components/custom_dropdown.js"></script>
{% endblock %}
diff --git a/src/local_deep_research/web/templates/pages/history.html b/src/local_deep_research/web/templates/pages/history.html
index 19aec140e4..4cafd38a11 100644
--- a/src/local_deep_research/web/templates/pages/history.html
+++ b/src/local_deep_research/web/templates/pages/history.html
@@ -42,9 +42,6 @@
{% endblock %}
{% block page_scripts %}
-<!-- Load URL utilities -->
-<script defer src="/static/js/config/urls.js"></script>
-<!-- Then load the component -->
+<!-- formatting.js, api.js, urls.js already loaded by base.html -->
<script defer src="/static/js/components/history.js"></script>
-<!-- Add Bootstrap JavaScript -->
{% endblock %}
diff --git a/src/local_deep_research/web/templates/pages/progress.html b/src/local_deep_research/web/templates/pages/progress.html
index dd1b80229c..4906da13af 100644
--- a/src/local_deep_research/web/templates/pages/progress.html
+++ b/src/local_deep_research/web/templates/pages/progress.html
@@ -55,9 +55,7 @@
{% endblock %}
{% block page_scripts %}
-<!-- Load required services -->
+<!-- formatting.js, api.js, socket.js already loaded by base.html -->
<script defer src="/static/js/services/audio.js"></script>
-
-<!-- Then load the component -->
<script defer src="/static/js/components/progress.js"></script>
{% endblock %}
diff --git a/src/local_deep_research/web/templates/pages/results.html b/src/local_deep_research/web/templates/pages/results.html
index 1a9b79316d..a63e73a6f4 100644
--- a/src/local_deep_research/web/templates/pages/results.html
+++ b/src/local_deep_research/web/templates/pages/results.html
@@ -122,12 +122,11 @@
{% endblock %}
{% block page_scripts %}
-<!-- Bootstrap JS for modal functionality -->
+<!-- formatting.js, api.js already loaded by base.html -->
<!-- Fallback utilities in case main services are not available -->
<script defer src="/static/js/components/fallback/ui.js"></script>
<script defer src="/static/js/components/fallback/formatting.js"></script>
-<!-- Main services -->
<script defer src="/static/js/services/pdf.js?v={{ range(1000, 9999) | random }}"></script>
<!-- Results component -->