~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
Remove audio service from core services and clean up related styles
hashedviking34c89cbc8b5e
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.cssindex 075689e467..cad6fe723e 100644--- a/src/local_deep_research/web/static/css/styles.css+++ b/src/local_deep_research/web/static/css/styles.css@@ -346,57 +346,181 @@ textarea:focus, input[type="text"]:focus {font-size: 0.85rem;}-/* Progress Bar */-.progress-container {- margin: 1.5rem 0;+/* Progress Page */+.progress-info {+ padding: 1rem 0;+}++.current-query-container {+ margin-bottom: 1rem;display: flex;align-items: center;- gap: 1rem;}-.progress-bar {+.current-query-label {+ font-weight: 600;+ color: var(--text-secondary);+ margin-right: 0.5rem;+ min-width: 120px;+}++.current-query {flex: 1;- height: 12px;+ color: var(--text-primary);+ padding: 0.5rem;background-color: var(--bg-tertiary);border-radius: 6px;+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.9rem;+ overflow-wrap: break-word;+ word-wrap: break-word;+ word-break: break-word;+}++.progress-container {+ margin: 1.5rem 0;+ position: relative;+}++.progress-bar {+ width: 100%;+ height: 10px;+ background-color: var(--bg-tertiary);+ border-radius: 5px;overflow: hidden;+ position: relative;}.progress-fill {height: 100%;- width: 0%;- background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));- border-radius: 6px;+ background-color: var(--accent-primary);+ border-radius: 5px;transition: width 0.5s ease;}-.progress-text {- width: 60px;- text-align: right;+.progress-percentage {+ position: absolute;+ right: 0;+ top: -1.5rem;+ font-size: 0.875rem;font-weight: 600;- color: var(--accent-secondary);+ color: var(--text-secondary);}-.query-display {- margin-bottom: 1.5rem;+.status-container, .task-container {+ display: flex;+ align-items: flex-start;+ margin-bottom: 0.75rem;}-.query-display h3 {+.status-label, .task-label {+ font-weight: 600;color: var(--text-secondary);- font-size: 1rem;- margin-bottom: 0.5rem;+ margin-right: 0.5rem;+ min-width: 120px;+}++.status-indicator {+ padding: 0.25rem 0.75rem;+ border-radius: 12px;+ font-size: 0.875rem;+ font-weight: 600;+ background-color: var(--bg-tertiary);+ color: var(--text-secondary);+}++.status-indicator.status-completed {+ background-color: rgba(10, 207, 151, 0.2);+ color: var(--success-color);+}++.status-indicator.status-failed,+.status-indicator.status-error {+ background-color: rgba(250, 92, 124, 0.2);+ color: var(--error-color);}-.query-display p {+.status-indicator.status-in_progress {+ background-color: rgba(64, 191, 255, 0.2);+ color: var(--accent-tertiary);+}++.task-text {+ flex: 1;color: var(--text-primary);- font-weight: 500;+ line-height: 1.4;}-.progress-info {- color: var(--text-secondary);+.progress-actions {+ margin-top: 1.5rem;+ display: flex;+ gap: 1rem;+}++/* Notification settings and audio test button */+.notification-settings {+ margin: 15px 0;+ display: flex;+ justify-content: flex-end;+}++.audio-test {+ position: relative;+ display: inline-flex;+ align-items: center;+}++.audio-test .tooltip-text {+ font-size: 0.8rem;+ color: var(--text-muted);+ margin-left: 10px;+}++#test-audio-btn {+ padding: 5px 10px;+ font-size: 0.9rem;+}++/* Sound test dialog styling */+.sound-test-dialog {font-size: 0.9rem;}+.sound-test-content {+ display: flex;+ flex-direction: column;+}++.sound-test-content h3 {+ margin-top: 0;+ margin-bottom: 15px;+}++.sound-test-content ul {+ list-style: none;+ padding: 0;+ margin: 15px 0;+}++.sound-test-content li {+ margin-bottom: 8px;+ display: flex;+ justify-content: space-between;+}++.sound-test-content .test-tip {+ background-color: rgba(64, 191, 255, 0.1);+ border-radius: 6px;+ padding: 10px;+ margin: 10px 0;+ font-size: 0.85rem;+}++.sound-test-content button {+ margin-top: 10px;+ margin-right: 8px;+}+/* History List */.history-list {display: flex;@@ -1419,4 +1543,30 @@ textarea:focus, input[type="text"]:focus {.toast-warning i {color: var(--warning-color);+}++.notification-group {+ display: flex;+ align-items: center;+ justify-content: space-between;+ margin-bottom: 1rem;+}++.notification-group .checkbox-label {+ display: flex;+ align-items: center;+ cursor: pointer;+}++.notification-group .btn-sm {+ padding: 0.35rem 0.75rem;+ font-size: 0.85rem;+ background-color: var(--bg-tertiary);+ color: var(--text-secondary);+ border: 1px solid var(--border-color);+}++.notification-group .btn-sm:hover {+ background-color: var(--accent-primary);+ color: white;}\ No newline at end of filediff --git a/src/local_deep_research/web/static/js/main.js b/src/local_deep_research/web/static/js/main.jsindex 73490135f2..ec2df0454f 100644--- a/src/local_deep_research/web/static/js/main.js+++ b/src/local_deep_research/web/static/js/main.js@@ -18,8 +18,8 @@'formatting.js','ui.js','api.js',- 'socket.js',- 'audio.js'+ 'socket.js'+ // 'audio.js' - Removed from here, loaded separately];// Optional services to load when needed@@ -42,22 +42,68 @@console.log('Current page detected:', currentPage);- // Load core services- loadScripts('utils', coreServices.filter(s => s.includes('formatting') || s.includes('ui')));- loadScripts('services', coreServices.filter(s => s.includes('api') || s.includes('socket') || s.includes('audio')));+ // IMPORTANT: Load audio.js first, before ANY other scripts+ loadAudioServiceFirst(() => {+ // Continue loading other scripts after audio service is loaded+ console.log('Audio service script loaded, continuing with other scripts');++ // Load UI and formatting utils+ loadScripts('utils', coreServices.filter(s => s.includes('formatting') || s.includes('ui')));++ // Then load the rest+ loadScripts('services', coreServices.filter(s => s.includes('api') || s.includes('socket')));++ // Load optional services for this page+ if (optionalServices[currentPage]) {+ loadScripts('services', optionalServices[currentPage]);+ }++ // Load components for this page AFTER all services+ if (pageComponents[currentPage]) {+ loadScripts('components', pageComponents[currentPage]);+ }++ // Initialize tooltips and other global UI elements+ initializeGlobalUI();+ });+ }++ /**+ * Load audio service first and separately to ensure it's fully loaded before other scripts+ * @param {Function} callback - Function to call after audio service is loaded+ */+ function loadAudioServiceFirst(callback) {+ console.log('Loading audio service script first...');+ const audioScript = document.createElement('script');+ audioScript.src = `/research/static/js/services/audio.js?t=${new Date().getTime()}`; // Add timestamp to avoid cache+ audioScript.async = false;- // Load optional services for this page- if (optionalServices[currentPage]) {- loadScripts('services', optionalServices[currentPage]);- }+ // Set up callback for when script loads+ audioScript.onload = function() {+ console.log('Audio service script loaded successfully');++ // Check if audio service is available in window object+ setTimeout(() => {+ if (window.audio) {+ console.log('Audio service initialized in window object');+ } else {+ console.warn('Audio service not available in window object after script load');+ }++ // Continue regardless+ callback();+ }, 100); // Small delay to ensure script executes+ };- // Load components for this page- if (pageComponents[currentPage]) {- loadScripts('components', pageComponents[currentPage]);- }+ // Error handling+ audioScript.onerror = function() {+ console.error('Failed to load audio service script');+ // Continue with other scripts even if audio fails+ callback();+ };- // Initialize tooltips and other global UI elements- initializeGlobalUI();+ // Add to document+ document.body.appendChild(audioScript);}/**