~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
chore(lint): enable no-unused-vars + mechanical cleanup (#3536)
LearningCircuit443b55135afd
diff --git a/eslint.config.js b/eslint.config.jsindex cfad600d11..34a2aa97ca 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -46,7 +46,15 @@ export default [rules: {"no-undef": "off", // browser globals not fully enumerated yet- "no-unused-vars": "off", // 164 warnings across codebase; re-enable after cleanup+ "no-unused-vars": ["warn", {+ "args": "after-used",+ "argsIgnorePattern": "^_",+ "varsIgnorePattern": "^_",+ "caughtErrors": "all",+ "caughtErrorsIgnorePattern": "^_",+ "destructuredArrayIgnorePattern": "^_",+ "ignoreRestSiblings": true,+ }],// --- High priority: real bugs found in codebase ---"no-var": "error",diff --git a/src/local_deep_research/web/static/js/collection_upload.js b/src/local_deep_research/web/static/js/collection_upload.jsindex 72c04cbdb9..e2dd0c2f08 100644--- a/src/local_deep_research/web/static/js/collection_upload.js+++ b/src/local_deep_research/web/static/js/collection_upload.js@@ -144,7 +144,7 @@ document.addEventListener('DOMContentLoaded', function() {}}, { capture: true });- document.addEventListener('drop', (e) => {+ document.addEventListener('drop', () => {dragCounter = 0;const dropZone = document.getElementById('drop-zone');if (dropZone) {@@ -422,7 +422,7 @@ function uploadBatch(files, pdfStorageMode, csrfToken, uploadUrl, onProgress) {if (xhr.status >= 200 && xhr.status < 300) {try {resolve(JSON.parse(xhr.responseText));- } catch (e) {+ } catch {reject(new Error('Invalid JSON response'));}} else {@@ -473,7 +473,7 @@ async function handleSingleUpload(files, pdfStorageMode, csrfToken, uploadUrl) {if (xhr.status >= 200 && xhr.status < 300) {try {resolve(JSON.parse(xhr.responseText));- } catch (e) {+ } catch {reject(new Error('Invalid JSON response'));}} else {@@ -545,7 +545,7 @@ function showBatchedProgress(files, totalBatches) {/*** Update batched upload progress*/-function updateBatchProgress(currentBatch, totalBatches, uploadedBytes, totalBytes) {+function updateBatchProgress(currentBatch, totalBatches) {const batchInfo = document.getElementById('batch-info');const progressDetails = document.getElementById('progress-details');diff --git a/src/local_deep_research/web/static/js/components/custom_dropdown.js b/src/local_deep_research/web/static/js/components/custom_dropdown.jsindex 6f4fd8c160..646102f994 100644--- a/src/local_deep_research/web/static/js/components/custom_dropdown.js+++ b/src/local_deep_research/web/static/js/components/custom_dropdown.js@@ -457,7 +457,7 @@}, { signal });// Blur event - close dropdown when tabbing away- input.addEventListener('blur', (e) => {+ input.addEventListener('blur', () => {// Small delay to allow click events on dropdown items to fire firstsetTimeout(() => {// Don't close if we're clicking inside the dropdown@@ -593,11 +593,11 @@}, { signal });// Track mouse events in the dropdown to prevent premature closing- dropdownList.addEventListener('mousedown', (e) => {+ dropdownList.addEventListener('mousedown', () => {isClickingDropdown = true;}, { signal });- dropdownList.addEventListener('mouseup', (e) => {+ dropdownList.addEventListener('mouseup', () => {// Reset flag after a small delay to ensure click event firessetTimeout(() => {isClickingDropdown = false;diff --git a/src/local_deep_research/web/static/js/components/details.js b/src/local_deep_research/web/static/js/components/details.jsindex 8f5977cbee..d7b019bb22 100644--- a/src/local_deep_research/web/static/js/components/details.js+++ b/src/local_deep_research/web/static/js/components/details.js@@ -293,7 +293,7 @@if (errorJson.message) {throw new Error(errorJson.message);}- } catch (e) {+ } catch {// Not JSON, use original text}throw new Error(`Failed to load research details: ${detailsResponse.status}`);diff --git a/src/local_deep_research/web/static/js/components/history.js b/src/local_deep_research/web/static/js/components/history.jsindex 97a6e549b9..7037c987a3 100644--- a/src/local_deep_research/web/static/js/components/history.js+++ b/src/local_deep_research/web/static/js/components/history.js@@ -350,7 +350,7 @@try {const date = new Date(dateStr);return date.toLocaleDateString() + ' ' + date.toLocaleTimeString();- } catch (e) {+ } catch {return dateStr;}}@@ -476,7 +476,7 @@if (semanticResult.research_created_at) {try {dateStr = new Date(semanticResult.research_created_at).toLocaleDateString();- } catch (e) {+ } catch {dateStr = '';}}diff --git a/src/local_deep_research/web/static/js/components/history_search.js b/src/local_deep_research/web/static/js/components/history_search.jsindex 8dc7d75480..3c9b7224b1 100644--- a/src/local_deep_research/web/static/js/components/history_search.js+++ b/src/local_deep_research/web/static/js/components/history_search.js@@ -176,7 +176,7 @@ async function triggerIndexing() {let startData;try {startData = await startResp.json();- } catch (parseError) {+ } catch {throw new Error(`Server returned ${startResp.status}: unable to parse response`);}diff --git a/src/local_deep_research/web/static/js/components/research.js b/src/local_deep_research/web/static/js/components/research.jsindex 348292c3a4..78340a1fe4 100644--- a/src/local_deep_research/web/static/js/components/research.js+++ b/src/local_deep_research/web/static/js/components/research.js@@ -317,7 +317,7 @@Promise.all([loadModelOptions(false),loadSearchEngineOptions(false)- ]).then(([modelData, searchEngineData]) => {+ ]).then(([_modelData, searchEngineData]) => {// After loading model data, update the UI with the loaded dataconst currentProvider = modelProviderSelect ? modelProviderSelect.value : 'OLLAMA';updateModelOptionsForProvider(currentProvider, false);@@ -415,7 +415,6 @@if (modelInput && modelDropdownList) {// Clear any existing dropdown setupmodelDropdownList.innerHTML = '';-const modelDropdownInstance = window.setupCustomDropdown(modelInput,modelDropdownList,@@ -493,7 +492,6 @@if (searchEngineInput.parentNode) {searchEngineInput.parentNode.classList.add('ldr-loading');}-const searchDropdownInstance = window.setupCustomDropdown(searchEngineInput,searchEngineDropdownList,@@ -1774,7 +1772,7 @@* Load model options from API or cache*/function loadModelOptions(forceRefresh = false) {- return new Promise((resolve, reject) => {+ return new Promise((resolve) => {// Check in-memory cache first if not forcing refresh (5-minute expiration)if (!forceRefresh) {const cachedData = getCachedData(CACHE_KEYS.MODELS);@@ -1932,7 +1930,7 @@// Load search engine optionsfunction loadSearchEngineOptions(forceRefresh = false) {- return new Promise((resolve, reject) => {+ return new Promise((resolve) => {// Check in-memory cache first if not forcing refresh (5-minute expiration)if (!forceRefresh) {const cachedData = getCachedData(CACHE_KEYS.SEARCH_ENGINES);diff --git a/src/local_deep_research/web/static/js/components/results.js b/src/local_deep_research/web/static/js/components/results.jsindex ea036b9e72..58271ac342 100644--- a/src/local_deep_research/web/static/js/components/results.js+++ b/src/local_deep_research/web/static/js/components/results.js@@ -1018,7 +1018,7 @@setRating(data.rating);}}- } catch (error) {+ } catch {SafeLogger.log('No existing rating found');}}@@ -1057,7 +1057,7 @@if (responseData.status === 'success') {SafeLogger.log('✅ Rating confirmed saved:', responseData.rating);}- } catch (e) {+ } catch {SafeLogger.log('✅ Rating saved (non-JSON response)');}} else {diff --git a/src/local_deep_research/web/static/js/components/semantic_search.js b/src/local_deep_research/web/static/js/components/semantic_search.jsindex f480d8c260..2ededab364 100644--- a/src/local_deep_research/web/static/js/components/semantic_search.js+++ b/src/local_deep_research/web/static/js/components/semantic_search.js@@ -172,7 +172,7 @@ function createSemanticResultCard(result, config, query) {if (rawDate) {try {dateStr = new Date(rawDate).toLocaleDateString();- } catch (e) {+ } catch {dateStr = '';}}diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.jsindex 261a864078..eebf9618a5 100644--- a/src/local_deep_research/web/static/js/components/settings.js+++ b/src/local_deep_research/web/static/js/components/settings.js@@ -254,7 +254,6 @@// Get all inputs in settings formconst inputs = settingsForm.querySelectorAll('input, textarea, select');-let checkboxCount = 0;// Set up event handlers for each inputinputs.forEach(input => {@@ -337,11 +336,11 @@control.setAttribute('data-json-control-initialized', 'true');if (control.type === 'checkbox') {- control.addEventListener('change', function(e) {+ control.addEventListener('change', function() {updateJsonFromControls(control, true); // true = force save});} else {- control.addEventListener('input', function(e) {+ control.addEventListener('input', function() {updateJsonFromControls(control, false); // false = don't save yet});@@ -354,7 +353,7 @@}});- control.addEventListener('blur', function(e) {+ control.addEventListener('blur', function() {updateJsonFromControls(control, true); // true = force save});}@@ -431,7 +430,7 @@try {// Validatevalue = JSON.parse(input.value);- } catch (e) {+ } catch {markInvalidInput(input, 'Invalid JSON');return;}@@ -515,7 +514,7 @@}}input.classList.remove('ldr-settings-error');- } catch (e) {+ } catch {// Invalid JSON, mark as error but don't prevent typinginput.classList.add('ldr-settings-error');@@ -888,7 +887,7 @@// Try to restore cursorthis.setSelectionRange(selectionStart, selectionEnd);}- } catch (e) {+ } catch {// Invalid JSON, just leave it alone}}@@ -921,7 +920,7 @@try {textarea.value = JSON.stringify(JSON.parse(value), null, 2);- } catch (e) {+ } catch {textarea.value = value;}@@ -2510,7 +2509,7 @@try {JSON.parse(content);return true;- } catch (e) {+ } catch {showMessage('Setting value must be valid JSON.', 'error', 5000);return false;}@@ -3009,7 +3008,7 @@if (rawConfigEditor.value) {existingConfig = JSON.parse(rawConfigEditor.value);}- } catch (e) {+ } catch {SafeLogger.warn('Could not parse existing JSON config, starting fresh');existingConfig = {};}@@ -3033,7 +3032,7 @@if (typeof value === 'string' && (value.startsWith('{') || value.startsWith('['))) {try {value = JSON.parse(value);- } catch (e) {+ } catch {// Leave as string if not valid JSON}}@@ -3447,7 +3446,7 @@settingsProviderInput,providerList,() => MODEL_PROVIDERS,- (value, item) => {+ (value) => {SafeLogger.log('Provider selected:', value);// Update hidden input@@ -3496,7 +3495,7 @@{ value: 'claude-3-5-sonnet-latest', label: 'Claude 3.5 Sonnet (Anthropic)' },{ value: 'llama3', label: 'Llama 3 (Ollama)' }],- (value, item) => {+ (value) => {SafeLogger.log('Model selected:', value);// Update hidden input@@ -3633,7 +3632,7 @@searchEngineInput,dropdownList,() => searchEngineOptions.length > 0 ? searchEngineOptions : [{ value: 'auto', label: 'Auto (Default)' }],- (value, item) => {+ (value) => {SafeLogger.log('Search engine selected:', value);// Update the hidden input valuesearchEngineHiddenInput.value = value;@@ -4118,7 +4117,7 @@dropdownInput,dropdownList,() => optionsSource,- (value, item) => {+ (value) => {SafeLogger.log(`Dropdown ${settingKey} selected:`, value);// --- MODIFICATION START: Removed hiddenInput retrieval, already have it ---const hiddenInput = document.getElementById(`${dropdownInput.id}_hidden`);@@ -4302,7 +4301,7 @@() => filteredModels.length > 0 ? filteredModels : [{ value: 'no-models', label: 'No models available for this provider' }],- (value, item) => {+ (value) => {SafeLogger.log('Selected model:', value);// Save the selectionif (modelHiddenInput) { // Use the variable we already havediff --git a/src/local_deep_research/web/static/js/components/settings_sync.js b/src/local_deep_research/web/static/js/components/settings_sync.jsindex 56fc47f1e9..9ee46384b0 100644--- a/src/local_deep_research/web/static/js/components/settings_sync.js+++ b/src/local_deep_research/web/static/js/components/settings_sync.js@@ -66,7 +66,7 @@ function connectMenuSettings() {const modelHidden = document.getElementById('model_hidden');if (modelHidden) {- modelHidden.addEventListener('change', function(e) {+ modelHidden.addEventListener('change', function() {SafeLogger.log('Model changed to:', this.value);saveMenuSettings('llm.model', this.value);});@@ -75,7 +75,7 @@ function connectMenuSettings() {// Handle provider dropdown changesconst providerSelect = document.getElementById('model_provider');if (providerSelect) {- providerSelect.addEventListener('change', function(e) {+ providerSelect.addEventListener('change', function() {SafeLogger.log('Provider changed to:', this.value);saveMenuSettings('llm.provider', this.value);});@@ -84,7 +84,7 @@ function connectMenuSettings() {// Handle search engine dropdown changesconst searchEngineHidden = document.getElementById('search_engine_hidden');if (searchEngineHidden) {- searchEngineHidden.addEventListener('change', function(e) {+ searchEngineHidden.addEventListener('change', function() {SafeLogger.log('Search engine changed to:', this.value);saveMenuSettings('search.tool', this.value);});@@ -93,7 +93,7 @@ function connectMenuSettings() {// Handle iterations and questions per iterationconst iterationsInput = document.getElementById('iterations');if (iterationsInput) {- iterationsInput.addEventListener('change', function(e) {+ iterationsInput.addEventListener('change', function() {SafeLogger.log('Iterations changed to:', this.value);saveMenuSettings('search.iterations', this.value);});@@ -101,7 +101,7 @@ function connectMenuSettings() {const questionsInput = document.getElementById('questions_per_iteration');if (questionsInput) {- questionsInput.addEventListener('change', function(e) {+ questionsInput.addEventListener('change', function() {SafeLogger.log('Questions per iteration changed to:', this.value);saveMenuSettings('search.questions_per_iteration', this.value);});@@ -110,7 +110,7 @@ function connectMenuSettings() {// Handle search strategy dropdown changesconst strategySelect = document.getElementById('strategy');if (strategySelect) {- strategySelect.addEventListener('change', function(e) {+ strategySelect.addEventListener('change', function() {SafeLogger.log('Search strategy changed to:', this.value);saveMenuSettings('search.search_strategy', this.value);});@@ -119,12 +119,12 @@ function connectMenuSettings() {// Handle Ollama URL input changesconst ollamaUrlInput = document.getElementById('ollama_url');if (ollamaUrlInput) {- ollamaUrlInput.addEventListener('change', function(e) {+ ollamaUrlInput.addEventListener('change', function() {SafeLogger.log('Ollama URL changed to:', this.value);saveMenuSettings('llm.ollama.url', this.value);});// Also save on blur (when user clicks away)- ollamaUrlInput.addEventListener('blur', function(e) {+ ollamaUrlInput.addEventListener('blur', function() {if (this.value && this.value !== this.getAttribute('data-last-saved')) {SafeLogger.log('Ollama URL changed (on blur) to:', this.value);saveMenuSettings('llm.ollama.url', this.value);@@ -136,12 +136,12 @@ function connectMenuSettings() {// Handle custom endpoint URL input changes (for OpenAI endpoint)const customEndpointInput = document.getElementById('custom_endpoint');if (customEndpointInput) {- customEndpointInput.addEventListener('change', function(e) {+ customEndpointInput.addEventListener('change', function() {SafeLogger.log('Custom endpoint URL changed to:', this.value);saveMenuSettings('llm.openai_endpoint.url', this.value);});// Also save on blur- customEndpointInput.addEventListener('blur', function(e) {+ customEndpointInput.addEventListener('blur', function() {if (this.value && this.value !== this.getAttribute('data-last-saved')) {SafeLogger.log('Custom endpoint URL changed (on blur) to:', this.value);saveMenuSettings('llm.openai_endpoint.url', this.value);@@ -154,7 +154,7 @@ function connectMenuSettings() {// Try multiple selectors to find the theme select elementconst themeSelect = document.querySelector('select[data-key="app.theme"], select[name="app.theme"], #theme-select');if (themeSelect) {- themeSelect.addEventListener('change', function(e) {+ themeSelect.addEventListener('change', function() {SafeLogger.log('Theme changed to:', this.value);// Use themeService if available (handles both UI update and server sync)if (window.themeService && typeof window.themeService.setTheme === 'function') {diff --git a/src/local_deep_research/web/static/js/embedding_settings.js b/src/local_deep_research/web/static/js/embedding_settings.jsindex c5f8b65858..c928ae1e2a 100644--- a/src/local_deep_research/web/static/js/embedding_settings.js+++ b/src/local_deep_research/web/static/js/embedding_settings.js@@ -144,7 +144,7 @@ async function loadCurrentSettings() {'local_search_normalize_vectors': document.getElementById('normalize-vectors').checked,'local_search_text_separators': (function() {try { return JSON.parse(document.getElementById('text-separators').value); }- catch (e) { return ["\n\n", "\n", ". ", " ", ""]; }+ catch { return ["\n\n", "\n", ". ", " ", ""]; }})(),'embeddings.ollama.url': document.getElementById('ollama-url').value};@@ -216,7 +216,7 @@ function areValuesEqual(a, b) {// Handle JSON comparison for arrays/objectstry {return JSON.stringify(a) === JSON.stringify(b);- } catch (e) {+ } catch {return false;}}@@ -304,7 +304,7 @@ async function saveSetting(key, value, displayName, oldValue) {function refreshSavedDefaults() {let textSeps;try { textSeps = JSON.parse(document.getElementById('text-separators').value); }- catch (e) { textSeps = []; }+ catch { textSeps = []; }renderSavedDefaults({embedding_provider: document.getElementById('embedding-provider').value,@@ -409,7 +409,7 @@ function attachAutoSaveListeners() {}const oldValue = originalValues['local_search_text_separators'];saveSetting('local_search_text_separators', value, 'Text separators', oldValue);- } catch (e) {+ } catch {showError('Invalid JSON format for text separators');}});@@ -694,7 +694,7 @@ async function handleConfigSubmit(event) {showError('Text separators must be a JSON array');return;}- } catch (e) {+ } catch {showError('Invalid JSON format for text separators');return;}diff --git a/src/local_deep_research/web/static/js/mobile-navigation.js b/src/local_deep_research/web/static/js/mobile-navigation.jsindex 6c67ad2d50..794ef6e24a 100644--- a/src/local_deep_research/web/static/js/mobile-navigation.js+++ b/src/local_deep_research/web/static/js/mobile-navigation.js@@ -553,7 +553,7 @@}}- handleSheetItem(action, itemId) {+ handleSheetItem(action) {this.closeSheet();if (action === '#logout') {diff --git a/src/local_deep_research/web/static/js/pages/news.js b/src/local_deep_research/web/static/js/pages/news.jsindex f0edd6f35c..42f3e2cb67 100644--- a/src/local_deep_research/web/static/js/pages/news.js+++ b/src/local_deep_research/web/static/js/pages/news.js@@ -489,7 +489,7 @@ async function performAdvancedNewsSearch(query, strategy = 'source-based', modeltry {const errorData = await response.json();errorMessage = errorData.error || errorData.message || errorMessage;- } catch (e) {+ } catch {// If response is not JSON, use status texterrorMessage = `${errorMessage}: ${response.statusText}`;}@@ -999,7 +999,6 @@ function renderNewsItems(searchQuery = null) {).join('');topicsHtml = `<div class="ldr-news-topics">${topicTags}</div>`;}-const isExpanded = expandedNewsIds.has(item.id);return `@@ -1159,7 +1158,7 @@ function formatNewsDateTime(dateStr) {minute: '2-digit',hour12: false});- } catch (e) {+ } catch {return dateStr;}}@@ -1175,7 +1174,7 @@ function formatNewsDate(dateStr) {const hours = String(date.getUTCHours()).padStart(2, '0');const minutes = String(date.getUTCMinutes()).padStart(2, '0');return `${isoDate} ${hours}:${minutes}`;- } catch (e) {+ } catch {return null;}}@@ -1303,7 +1302,7 @@ function loadSavedItems() {try {const ids = JSON.parse(saved);savedNewsIds = new Set(ids);- } catch (e) {+ } catch {savedNewsIds = new Set();}}@@ -1319,7 +1318,7 @@ function loadExpandedState() {try {const ids = JSON.parse(saved);expandedNewsIds = new Set(ids);- } catch (e) {+ } catch {expandedNewsIds = new Set();}}@@ -1812,7 +1811,7 @@ function renderSourceLinks(links) {if (link.title.length > 30) {displayText = domain;}- } catch (e) {+ } catch {// If URL parsing fails, truncate titledisplayText = link.title.length > 30 ? link.title.substring(0, 27) + '...' : link.title;}@@ -2082,9 +2081,9 @@ const NEWS_CARD_CONFIG = {getTitle: (r) => r.research_title || r.title || 'Untitled',getUrl: (r) => (typeof URLBuilder !== 'undefined' && r.research_id)? URLBuilder.resultsPage(r.research_id) : '#',- getBadges: (r) => [{ icon: 'newspaper', label: 'News' }],+ getBadges: () => [{ icon: 'newspaper', label: 'News' }],getDate: (r) => r.research_created_at,- getSubtitle: (r) => null,+ getSubtitle: () => null,};async function initNewsSemanticSearch() {@@ -2790,14 +2789,13 @@ function displayRecentSearches() {safeRenderHTML(container, html);}-function rerunSearch(query, type = 'quick') {+function rerunSearch(query, _type = 'quick') {// Fill the search inputdocument.getElementById('news-search').value = query;// Trigger searchhandleSearchSubmit();}-async function clearSearchHistory() {if (!confirm('Clear all search history?')) return;@@ -2865,7 +2863,7 @@ function loadReadStatus() {try {const ids = JSON.parse(stored);readNewsIds = new Set(ids);- } catch (e) {+ } catch {readNewsIds = new Set();}}@@ -3040,7 +3038,7 @@ function copyToClipboard(text) {if (navigator.clipboard) {navigator.clipboard.writeText(text).then(() => {showAlert('Copied to clipboard', 'success');- }).catch(err => {+ }).catch(_err => {// Fallbackconst textarea = document.createElement('textarea');textarea.value = text;@@ -3071,7 +3069,7 @@ function loadVisitTracking() {try {const ids = JSON.parse(storedSeenIds);seenNewsIds = new Set(ids);- } catch (e) {+ } catch {seenNewsIds = new Set();}}diff --git a/src/local_deep_research/web/static/js/pdf_upload_handler.js b/src/local_deep_research/web/static/js/pdf_upload_handler.jsindex 595dcbc0c0..8e5091d2f5 100644--- a/src/local_deep_research/web/static/js/pdf_upload_handler.js+++ b/src/local_deep_research/web/static/js/pdf_upload_handler.js@@ -84,14 +84,14 @@ class PDFUploadHandler {// Highlight drop area when item is dragged over it['dragenter', 'dragover'].forEach(eventName => {- this.queryTextarea.addEventListener(eventName, (e) => {+ this.queryTextarea.addEventListener(eventName, () => {SafeLogger.log(`PDF Upload Handler: Highlighting for ${eventName}`);this.highlight();}, false);});['dragleave', 'drop'].forEach(eventName => {- this.queryTextarea.addEventListener(eventName, (e) => {+ this.queryTextarea.addEventListener(eventName, () => {SafeLogger.log(`PDF Upload Handler: Unhighlighting for ${eventName}`);this.unhighlight();}, false);diff --git a/src/local_deep_research/web/static/js/research_form.js b/src/local_deep_research/web/static/js/research_form.jsindex aafcfb15a2..19e5c52082 100644--- a/src/local_deep_research/web/static/js/research_form.js+++ b/src/local_deep_research/web/static/js/research_form.js@@ -51,7 +51,7 @@ function initResearchForm() {initializeWarnings();}})- .catch(error => {+ .catch(_error => {// Form will use default values if settings can't be loaded});@@ -68,7 +68,7 @@ function patchFormSubmitHandler() {if (!form) return;// Monitor for form submissions using the capture phase to run before other handlers- form.addEventListener('submit', function(event) {+ form.addEventListener('submit', function() {// Save research settings first, before the main form handler processes the submissionsaveResearchSettings();@@ -112,7 +112,7 @@ function saveResearchSettings() {})}).then(response => response.json())- .then(data => {+ .then(_data => {SafeLogger.log('Research settings saved');}).catch(error => {@@ -154,7 +154,7 @@ function setupWarningListeners() {// This will trigger when the research.js calls saveProviderSettingif (typeof window.saveProviderSetting === 'function') {const originalSaveProviderSetting = window.saveProviderSetting;- window.saveProviderSetting = function(providerValue) {+ window.saveProviderSetting = function() {// Call the original functionconst result = originalSaveProviderSetting.apply(this, arguments);// After it completes, refetch settings and update warnings@@ -215,7 +215,7 @@ function refetchSettingsAndUpdateWarnings() {// Recheck warnings from backend (not from cached settings)setTimeout(checkAndDisplayWarnings, 100);})- .catch(error => {+ .catch(_error => {// Still try to check warnings from backendsetTimeout(checkAndDisplayWarnings, 100);});@@ -254,7 +254,7 @@ function checkAndDisplayWarnings() {displayWarnings([]);}})- .catch(error => {+ .catch(_error => {// Clear warnings on errordisplayWarnings([]);});@@ -339,13 +339,13 @@ function dismissWarning(dismissKey) {})}).then(response => response.json())- .then(data => {+ .then(_data => {// Update global settings cacheglobalSettings[dismissKey] = { value: true };// Recheck warningscheckAndDisplayWarnings();})- .catch(error => {+ .catch(_error => {});}diff --git a/src/local_deep_research/web/static/js/security/auth-validation.js b/src/local_deep_research/web/static/js/security/auth-validation.jsindex 157bb7be98..1e69eb652f 100644--- a/src/local_deep_research/web/static/js/security/auth-validation.js+++ b/src/local_deep_research/web/static/js/security/auth-validation.js@@ -26,7 +26,7 @@return { valid: true, errors: [] };}return await resp.json();- } catch (e) {+ } catch {// Network error — let server-side validation catch it on submitreturn { valid: true, errors: [] };}diff --git a/src/local_deep_research/web/static/js/security/safe-logger.js b/src/local_deep_research/web/static/js/security/safe-logger.jsindex 5c87ae1d49..b281dcfb61 100644--- a/src/local_deep_research/web/static/js/security/safe-logger.js+++ b/src/local_deep_research/web/static/js/security/safe-logger.js@@ -115,7 +115,7 @@if (value && typeof value === 'object') {try {return JSON.stringify(value);- } catch (e) {+ } catch {return String(value);}}diff --git a/src/local_deep_research/web/static/js/services/help.js b/src/local_deep_research/web/static/js/services/help.jsindex baceb27343..1681e9f509 100644--- a/src/local_deep_research/web/static/js/services/help.js+++ b/src/local_deep_research/web/static/js/services/help.js@@ -137,7 +137,7 @@ const HelpService = (function() {}}}- } catch (e) {+ } catch {// Ignore fetch errors — panels will remain visible}}@@ -185,7 +185,7 @@ const HelpService = (function() {header.setAttribute('aria-expanded', 'true');}}- } catch (e) {+ } catch {// Ignore localStorage errors}});diff --git a/src/local_deep_research/web/static/js/services/pdf.js b/src/local_deep_research/web/static/js/services/pdf.jsindex f5341da0c7..e9d544ec00 100644--- a/src/local_deep_research/web/static/js/services/pdf.js+++ b/src/local_deep_research/web/static/js/services/pdf.js@@ -10,7 +10,7 @@* @param {Object} metadata - Additional metadata for the PDF* @returns {Promise<Blob>} A promise resolving to the generated PDF blob*/-async function generatePdf(title, content, metadata = {}) {+async function generatePdf(title, content, _metadata = {}) {// Check if necessary libraries are loaded (check window object for Vite compatibility)if (typeof jsPDF === 'undefined' && typeof window.jsPDF === 'undefined') {throw new Error('PDF generation libraries not loaded (jsPDF missing)');@@ -797,7 +797,7 @@ async function generatePdf(title, content, metadata = {}) {pdf.addImage(imgData, 'PNG', margin, currentY, imgWidth, imgHeight);currentY += imgHeight + 10;- } catch (canvasError) {+ } catch {pdf.text("[Content could not be rendered]", margin, currentY + 12);currentY += 20;}diff --git a/src/local_deep_research/web/static/js/services/theme.js b/src/local_deep_research/web/static/js/services/theme.jsindex 7b4bd50465..959be7c33e 100644--- a/src/local_deep_research/web/static/js/services/theme.js+++ b/src/local_deep_research/web/static/js/services/theme.js@@ -129,7 +129,7 @@if (!response.ok) throw new Error(`HTTP ${response.status}`);return response.json();})- .then(data => {+ .then(_data => {SafeLogger.log('Theme saved to server:', theme);}).catch(error => {@@ -300,7 +300,7 @@function setupSystemThemeListener() {const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');- mediaQuery.addEventListener('change', (e) => {+ mediaQuery.addEventListener('change', () => {const currentTheme = getCurrentTheme();if (currentTheme === 'system') {SafeLogger.log('System theme changed, updating...');diff --git a/src/local_deep_research/web/static/js/services/ui.js b/src/local_deep_research/web/static/js/services/ui.jsindex c4e9c80d3e..4a418f370c 100644--- a/src/local_deep_research/web/static/js/services/ui.js+++ b/src/local_deep_research/web/static/js/services/ui.js@@ -15,7 +15,7 @@ const UI_CONFIG = {* Safe HTML setter - uses DOMPurify if available, otherwise sets innerHTML directly* for controlled/trusted content only*/-function safeSetHTML(element, html, level) {+function safeSetHTML(element, html) {if (!element) return;// If DOMPurify is available globally (from Vite bundle), use itif (typeof DOMPurify !== 'undefined') {diff --git a/src/local_deep_research/web/static/js/utils/log-helpers.js b/src/local_deep_research/web/static/js/utils/log-helpers.jsindex 2d853db450..c455ef1c82 100644--- a/src/local_deep_research/web/static/js/utils/log-helpers.js+++ b/src/local_deep_research/web/static/js/utils/log-helpers.js@@ -86,7 +86,7 @@// Extract just the date part (YYYY-MM-DD)const dateStr = date.toISOString().split('T')[0];dateFrequency.set(dateStr, (dateFrequency.get(dateStr) || 0) + 1);- } catch (e) {+ } catch {SafeLogger.error('Error parsing date:', log.time);}});@@ -125,7 +125,7 @@log.id = `${log.time}-${hashString(log.message)}`;SafeLogger.log(`Normalized timestamp for "${log.message.substring(0, 30)}..." from ${dateStr} to ${mostCommonDate}`);}- } catch (e) {+ } catch {SafeLogger.error('Error normalizing date:', log.time);}});diff --git a/tests/api_tests_with_login/auth_helper.js b/tests/api_tests_with_login/auth_helper.jsindex 8fa9ae2e1a..28d2607b1a 100644--- a/tests/api_tests_with_login/auth_helper.js+++ b/tests/api_tests_with_login/auth_helper.js@@ -77,7 +77,7 @@ async function authenticate(baseUrl, username, password, cookieFile) {}} else {// Wait a bit more for redirect - but don't fail if no navigation happens- await page.waitForNavigation({ waitUntil: 'networkidle0', timeout: 5000 }).catch(e => {+ await page.waitForNavigation({ waitUntil: 'networkidle0', timeout: 5000 }).catch(_e => {console.log('No navigation after registration, continuing...');});}diff --git a/tests/api_tests_with_login/puppeteer_config.js b/tests/api_tests_with_login/puppeteer_config.jsindex b1628457d4..aed54a0a69 100644--- a/tests/api_tests_with_login/puppeteer_config.js+++ b/tests/api_tests_with_login/puppeteer_config.js@@ -36,7 +36,7 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {defaultOptions.executablePath = chromiumPath;break;}- } catch (e) {+ } catch {// Continue to next path}}diff --git a/tests/infrastructure_tests/test_rerun_config.test.js b/tests/infrastructure_tests/test_rerun_config.test.jsindex d9293f1182..ef9f65d6f1 100644--- a/tests/infrastructure_tests/test_rerun_config.test.js+++ b/tests/infrastructure_tests/test_rerun_config.test.js@@ -157,7 +157,7 @@ describe('checkAndApplyRerunConfig Parsing', () => {const config = JSON.parse(rerunConfigStr);sessionStorage.removeItem('rerunConfig');return config;- } catch (e) {+ } catch {sessionStorage.removeItem('rerunConfig');return null;}diff --git a/tests/infrastructure_tests/test_urls.test.js b/tests/infrastructure_tests/test_urls.test.jsindex bd9f54ca17..4850dc8c62 100644--- a/tests/infrastructure_tests/test_urls.test.js+++ b/tests/infrastructure_tests/test_urls.test.js@@ -175,7 +175,7 @@ describe('URLs Configuration', () => {test('URLs with parameters should use consistent placeholder format', () => {const checkPlaceholders = (obj) => {- Object.entries(obj).forEach(([key, value]) => {+ Object.entries(obj).forEach(([_key, value]) => {if (typeof value === 'string') {// Check that placeholders use {name} formatconst placeholders = value.match(/\{[^}]+\}/g) || [];diff --git a/tests/infrastructure_tests/test_xss_protection.test.js b/tests/infrastructure_tests/test_xss_protection.test.jsindex ff28ee5c47..23534c32ca 100644--- a/tests/infrastructure_tests/test_xss_protection.test.js+++ b/tests/infrastructure_tests/test_xss_protection.test.js@@ -8,7 +8,7 @@// Mock DOMPurify for testingconst mockDOMPurify = {- sanitize: jest.fn((content, config) => {+ sanitize: jest.fn((content) => {// Simple mock that allows span tags with class attribute// but removes script tagslet result = content;diff --git a/tests/js/deletion/delete-modules.test.js b/tests/js/deletion/delete-modules.test.jsindex d06c14a040..8ac2be0439 100644--- a/tests/js/deletion/delete-modules.test.js+++ b/tests/js/deletion/delete-modules.test.js@@ -110,7 +110,7 @@ describe('DeleteManager.deleteDocument', () => {// Verify a DELETE was made to the right endpointconst deleteCall = window.api.fetchWithErrorHandling.mock.calls.find(- ([url, opts]) => opts && opts.method === 'DELETE'+ ([_url, opts]) => opts && opts.method === 'DELETE');expect(deleteCall).toBeDefined();expect(deleteCall[0]).toContain('doc-123');diff --git a/tests/puppeteer/helpers/index.js b/tests/puppeteer/helpers/index.jsindex 0c23cd33a4..3191aef4d7 100644--- a/tests/puppeteer/helpers/index.js+++ b/tests/puppeteer/helpers/index.js@@ -150,7 +150,7 @@ async function loginUser(page, username, password) {// Wait for formtry {await page.waitForSelector('input[name="username"]', { timeout: 5000 });- } catch (e) {+ } catch {// No login form - might already be logged inconst url = page.url();console.log(` loginUser: No form found, URL = ${url}`);@@ -168,7 +168,7 @@ async function loginUser(page, username, password) {// Wait for redirecttry {await page.waitForNavigation({ waitUntil: 'domcontentloaded', timeout: 10000 });- } catch (e) {+ } catch {console.log(' loginUser: Navigation timeout (may already be redirected)');}@@ -195,7 +195,7 @@ async function registerUser(page, username, password) {// Wait for formtry {await page.waitForSelector('input[name="username"]', { timeout: 5000 });- } catch (e) {+ } catch {console.log(' registerUser: No registration form found');return false;}@@ -225,7 +225,7 @@ async function registerUser(page, username, password) {// Wait for redirecttry {await page.waitForNavigation({ waitUntil: 'domcontentloaded', timeout: 10000 });- } catch (e) {+ } catch {console.log(' registerUser: Navigation timeout');}diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.jsindex 18af2092cf..b79acc55f2 100644--- a/tests/puppeteer/test_deep_functionality.js+++ b/tests/puppeteer/test_deep_functionality.js@@ -181,7 +181,7 @@ describe('Deep Functionality Tests', function() {// Wait for query input to be availabletry {await page.waitForSelector('#query, textarea[name="query"]', { timeout: 10000, visible: true });- } catch (e) {+ } catch {console.log(' Query input not found - may not be on research page');await takeScreenshot(page, 'research-no-query-input');return;@@ -318,7 +318,7 @@ describe('Deep Functionality Tests', function() {// Navigate to progress page - use domcontentloaded since page does continuous pollingtry {await page.goto(`${BASE_URL}/progress/${researchId}`, { waitUntil: 'domcontentloaded', timeout: 15000 });- } catch (e) {+ } catch {console.log(' Navigation timeout (expected for polling page)');}console.log(` Monitoring research: ${researchId}`);@@ -385,7 +385,7 @@ describe('Deep Functionality Tests', function() {const res = await fetch(`${baseUrl}/api/research/${id}`);const data = await res.json();return data.status;- } catch (e) {+ } catch {return null;}}, BASE_URL, researchId);@@ -746,7 +746,7 @@ describe('Deep Functionality Tests', function() {method: 'POST',headers: { 'X-CSRFToken': csrf }});- } catch (e) {+ } catch {// Ignore cleanup errors}}, BASE_URL, researchId, csrfForTerminate);@@ -820,7 +820,7 @@ describe('Deep Functionality Tests', function() {// Wait for form to be readytry {await page.waitForSelector('#subscription-query', { timeout: 5000, visible: true });- } catch (e) {+ } catch {console.log(' Subscription query input not found');await takeScreenshot(page, 'subscription-form-not-found');return;@@ -933,7 +933,7 @@ describe('Deep Functionality Tests', function() {// Wait for form to be readytry {await page.waitForSelector('#collection-name', { timeout: 5000, visible: true });- } catch (e) {+ } catch {console.log(' Collection name input not found');await takeScreenshot(page, 'collection-form-not-found');return;@@ -1173,7 +1173,7 @@ describe('Deep Functionality Tests', function() {it('should gracefully handle invalid research ID', async () => {try {await page.goto(`${BASE_URL}/progress/invalid-id-12345`, { waitUntil: 'domcontentloaded', timeout: 15000 });- } catch (e) {+ } catch {// Timeout is acceptable - page may be pollingconsole.log(' Navigation timeout (expected for polling page)');}@@ -1214,7 +1214,7 @@ describe('Deep Functionality Tests', function() {it('should load metrics page', async () => {try {await page.goto(`${BASE_URL}/metrics`, { waitUntil: 'domcontentloaded', timeout: 15000 });- } catch (e) {+ } catch {console.log(' Metrics page navigation timeout');}await takeScreenshot(page, 'metrics-page');@@ -1227,7 +1227,7 @@ describe('Deep Functionality Tests', function() {it('should load benchmark page', async () => {try {await page.goto(`${BASE_URL}/benchmark`, { waitUntil: 'domcontentloaded', timeout: 15000 });- } catch (e) {+ } catch {console.log(' Benchmark page navigation timeout');}await takeScreenshot(page, 'benchmark-page');@@ -1320,7 +1320,7 @@ describe('Deep Functionality Tests', function() {await delay(500);const tabName = await tabs[i].evaluate(el => el.textContent || el.getAttribute('data-tab'));console.log(` ✓ Clicked tab: ${tabName}`);- } catch (e) {+ } catch {console.log(` Tab ${i} not clickable`);}}@@ -2250,7 +2250,7 @@ describe('Deep Functionality Tests', function() {waitUntil: 'domcontentloaded',timeout: 10000});- } catch (e) {+ } catch {console.log(' Progress page timeout (expected)');}diff --git a/tests/test_api_key_settings.js b/tests/test_api_key_settings.jsindex 5774e78cb5..b8a88f62be 100644--- a/tests/test_api_key_settings.js+++ b/tests/test_api_key_settings.js@@ -253,7 +253,7 @@ describe('API Key Settings Test', function() {});});-async function verifyApiKeyWorks(page) {+async function verifyApiKeyWorks() {console.log('Verifying API key functionality...');// This would make an actual API call to verify the key works// For now, we'll just log that we would verify itdiff --git a/tests/ui_tests/DEBUG_research_submit_debug.js b/tests/ui_tests/DEBUG_research_submit_debug.jsindex b4f13e3417..8394e5a088 100644--- a/tests/ui_tests/DEBUG_research_submit_debug.js+++ b/tests/ui_tests/DEBUG_research_submit_debug.js@@ -9,7 +9,7 @@ async function ensureScreenshotsDir() {const dir = path.join(__dirname, 'screenshots');try {await fs.mkdir(dir, { recursive: true });- } catch (e) {+ } catch {// Directory exists}return dir;@@ -195,7 +195,7 @@ async function testResearchSubmitDebug() {try {const text = await response.text();console.log(' Body:', text);- } catch (e) {+ } catch {console.log(' Body: <unable to read>');}}diff --git a/tests/ui_tests/DEBUG_settings_mobile_fix.js b/tests/ui_tests/DEBUG_settings_mobile_fix.jsindex 3e69c1f692..a7dc057bce 100644--- a/tests/ui_tests/DEBUG_settings_mobile_fix.js+++ b/tests/ui_tests/DEBUG_settings_mobile_fix.js@@ -35,7 +35,7 @@ async function testSettingsMobileFix() {waitUntil: 'domcontentloaded',timeout: 5000});- } catch (e) {+ } catch {console.log('⚠️ Navigation timeout, but continuing...');}diff --git a/tests/ui_tests/NO_CI_executes_research_fixed_research.js b/tests/ui_tests/NO_CI_executes_research_fixed_research.jsindex 5d91a296a4..0dab11974f 100644--- a/tests/ui_tests/NO_CI_executes_research_fixed_research.js+++ b/tests/ui_tests/NO_CI_executes_research_fixed_research.js@@ -61,7 +61,7 @@ async function testFixedResearch() {await Promise.all([page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 15000 }),submitButton.click()- ]).catch(async (error) => {+ ]).catch(async () => {console.log('⚠️ Navigation timeout, checking current state...');// Even if navigation times out, check if we're on research page});diff --git a/tests/ui_tests/NO_CI_executes_research_full_research_completion.js b/tests/ui_tests/NO_CI_executes_research_full_research_completion.jsindex 35662dca0f..e002caa758 100644--- a/tests/ui_tests/NO_CI_executes_research_full_research_completion.js+++ b/tests/ui_tests/NO_CI_executes_research_full_research_completion.js@@ -95,7 +95,7 @@ async function testCompleteResearch() {let data;try {data = JSON.parse(responseText);- } catch (e) {+ } catch {data = { parseError: true, responseText };}diff --git a/tests/ui_tests/NO_CI_executes_research_multiple_research.js b/tests/ui_tests/NO_CI_executes_research_multiple_research.jsindex a2f2104c90..57943b7eb5 100644--- a/tests/ui_tests/NO_CI_executes_research_multiple_research.js+++ b/tests/ui_tests/NO_CI_executes_research_multiple_research.js@@ -16,7 +16,7 @@ async function startResearch(page, query) {// Wait for and fill the research formtry {await page.waitForSelector('#query', { timeout: 5000 });- } catch (e) {+ } catch {console.log('Could not find #query input.');console.log('Current URL:', page.url());@@ -203,7 +203,7 @@ async function startResearch(page, query) {try {await page.waitForSelector('#query', { timeout: 5000 });console.log('✅ Research form is visible, ready to start tests');- } catch (e) {+ } catch {console.error('Could not find research form');throw new Error('Unable to access research form after login');}diff --git a/tests/ui_tests/NO_CI_executes_research_research_fixed_model.js b/tests/ui_tests/NO_CI_executes_research_research_fixed_model.jsindex 3c8946b06d..cd33ae4d5d 100644--- a/tests/ui_tests/NO_CI_executes_research_research_fixed_model.js+++ b/tests/ui_tests/NO_CI_executes_research_research_fixed_model.js@@ -78,7 +78,7 @@ async function testResearchFixed() {let data;try {data = JSON.parse(responseText);- } catch (e) {+ } catch {data = { error: 'Failed to parse response', responseText };}diff --git a/tests/ui_tests/NO_CI_executes_research_research_with_model.js b/tests/ui_tests/NO_CI_executes_research_research_with_model.jsindex f58a7baccd..cfd5fdb13b 100644--- a/tests/ui_tests/NO_CI_executes_research_research_with_model.js+++ b/tests/ui_tests/NO_CI_executes_research_research_with_model.js@@ -39,7 +39,7 @@ async function testResearchWithAvailableModel() {try {const body = await response.text();console.log(` Body: ${body}`);- } catch (e) {+ } catch {console.log(` Body: <unable to read>`);}}@@ -100,7 +100,7 @@ async function testResearchWithAvailableModel() {try {await page.select('#model, select[name="model"]', 'llama3.1:8b');console.log('✅ Selected llama3.1:8b model');- } catch (e) {+ } catch {console.log('⚠️ Could not select llama3.1:8b, using current selection');}}diff --git a/tests/ui_tests/NO_CI_executes_research_research_working_config.js b/tests/ui_tests/NO_CI_executes_research_research_working_config.jsindex b99b8d690e..487a6d8829 100644--- a/tests/ui_tests/NO_CI_executes_research_research_working_config.js+++ b/tests/ui_tests/NO_CI_executes_research_research_working_config.js@@ -79,7 +79,7 @@ async function testResearchWorkingConfig() {let data;try {data = JSON.parse(responseText);- } catch (e) {+ } catch {data = { error: 'Failed to parse response', responseText };}diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.jsindex 76c3c9f881..91f8715726 100644--- a/tests/ui_tests/auth_helper.js+++ b/tests/ui_tests/auth_helper.js@@ -148,7 +148,7 @@ class AuthHelper {if (ok) {return true;}- } catch (e) {+ } catch {// ignore - will retry}@@ -208,9 +208,9 @@ class AuthHelper {try {const browser = this.page.browser();const newPage = await browser.newPage();- try { await this.page.close(); } catch (e) { /* already broken */ }+ try { await this.page.close(); } catch { /* already broken */ }this.page = newPage;- } catch (e) {+ } catch {// Could not create fresh page}}@@ -255,7 +255,7 @@ class AuthHelper {if (element) {return true;}- } catch (e) {+ } catch {// Some selectors might not be valid, continue}}@@ -273,7 +273,7 @@ class AuthHelper {}return false;- } catch (error) {+ } catch {return false;}}@@ -465,7 +465,7 @@ class AuthHelper {try {const browser = this.page.browser();const newPage = await browser.newPage();- try { await this.page.close(); } catch (e) { /* already broken */ }+ try { await this.page.close(); } catch { /* already broken */ }this.page = newPage;await this.page.goto(this.baseUrl, {@@ -473,7 +473,7 @@ class AuthHelper {timeout: AUTH_CONFIG.timeouts.formSelector});registrationSucceeded = true;- } catch (gotoError) {+ } catch {// Could not navigate to home after frame detachment}}@@ -485,9 +485,9 @@ class AuthHelper {// Ensure we have a working page (may have been replaced above)try {await this.page.url();- } catch (e) {+ } catch {const browser = this.page.browser();- try { await this.page.close(); } catch (closeErr) { /* already broken */ }+ try { await this.page.close(); } catch { /* already broken */ }this.page = await browser.newPage();}@@ -513,7 +513,7 @@ class AuthHelper {break;}}- } catch (sessionError) {+ } catch {if (retryAttempt < 3) {await this._delay(10000); // Wait 10s before retry}@@ -572,7 +572,7 @@ class AuthHelper {try {const browser = this.page.browser();const newPage = await browser.newPage();- try { await this.page.close(); } catch (e) { /* already broken */ }+ try { await this.page.close(); } catch { /* already broken */ }this.page = newPage;await this.page.goto(this.baseUrl, {@@ -580,7 +580,7 @@ class AuthHelper {timeout: AUTH_CONFIG.timeouts.formSelector});timer.lap('navigated to home');- } catch (gotoError) {+ } catch {// Could not navigate after registration}@@ -823,7 +823,7 @@ async function safeClick(page, selectorOrElement, options = {}) {timeout});element = await page.$(selectorOrElement);- } catch (e) {+ } catch {console.log(`safeClick: Element not found or not visible: ${selectorOrElement}`);return false;}diff --git a/tests/ui_tests/check_test_status.js b/tests/ui_tests/check_test_status.jsindex daba90d6e0..e1d1605423 100644--- a/tests/ui_tests/check_test_status.js+++ b/tests/ui_tests/check_test_status.js@@ -27,7 +27,6 @@ async function checkTest(testFile) {cwd: __dirname,env: { ...process.env, NODE_ENV: 'test' }});-let hasError = false;let errorMsg = '';diff --git a/tests/ui_tests/library/test_library_documents.js b/tests/ui_tests/library/test_library_documents.jsindex 03ec49227d..40662d80e7 100644--- a/tests/ui_tests/library/test_library_documents.js+++ b/tests/ui_tests/library/test_library_documents.js@@ -262,7 +262,6 @@ describe('Library Documents UI Tests', () => {test('should open download queue page', async () => {// Navigate directly to downloads pageawait page.goto(`${BASE_URL}/library/downloads`, { waitUntil: 'domcontentloaded' });-const pageTitle = await page.title();const pageContent = await page.content();@@ -277,7 +276,7 @@ if (require.main === module) {const { execSync } = require('child_process');try {execSync('npx jest ' + __filename + ' --testTimeout=60000', { stdio: 'inherit' });- } catch (error) {+ } catch {process.exit(1);}}diff --git a/tests/ui_tests/mobile/test_all_pages_mobile.js b/tests/ui_tests/mobile/test_all_pages_mobile.jsindex af852440fd..674a43c196 100755--- a/tests/ui_tests/mobile/test_all_pages_mobile.js+++ b/tests/ui_tests/mobile/test_all_pages_mobile.js@@ -133,7 +133,7 @@ class ComprehensiveMobileTest {await authHelper.ensureAuthenticated();authenticated = true;console.log('✅ Authentication successful\n');- } catch (error) {+ } catch {console.log('⚠️ Authentication failed, testing unauthenticated pages only\n');}diff --git a/tests/ui_tests/mobile/test_layout_bugs_ci.js b/tests/ui_tests/mobile/test_layout_bugs_ci.jsindex 2ad5647cf0..0b38b589a6 100644--- a/tests/ui_tests/mobile/test_layout_bugs_ci.js+++ b/tests/ui_tests/mobile/test_layout_bugs_ci.js@@ -550,7 +550,7 @@ const Assertions = {const smallTargets = [];const MIN_SIZE = 40; // 40px minimum for touch targets- interactiveElements.forEach((el, index) => {+ interactiveElements.forEach((el) => {const rect = el.getBoundingClientRect();const style = window.getComputedStyle(el);diff --git a/tests/ui_tests/mobile/test_mobile_all_pages_ci.js b/tests/ui_tests/mobile/test_mobile_all_pages_ci.jsindex 2fade1688c..47f5b53144 100644--- a/tests/ui_tests/mobile/test_mobile_all_pages_ci.js+++ b/tests/ui_tests/mobile/test_mobile_all_pages_ci.js@@ -85,7 +85,7 @@ class MobileAllPagesTest {const authHelper = new AuthHelper(page, CONFIG.baseUrl);try {await authHelper.ensureAuthenticated();- } catch (error) {+ } catch {console.log(' ⚠️ Authentication failed, testing unauthenticated pages only');}diff --git a/tests/ui_tests/mobile/test_mobile_nav_all_pages.js b/tests/ui_tests/mobile/test_mobile_nav_all_pages.jsindex 6bef3551ef..b1f6092034 100644--- a/tests/ui_tests/mobile/test_mobile_nav_all_pages.js+++ b/tests/ui_tests/mobile/test_mobile_nav_all_pages.js@@ -79,7 +79,7 @@ async function testAllPages() {try {const testFetch = await fetch(baseUrl);console.log('✅ Server is running\n');- } catch (error) {+ } catch {console.error('❌ Server is not running at', baseUrl);console.error(' Please start the server and try again');return;diff --git a/tests/ui_tests/mobile/test_mobile_navigation_ci.js b/tests/ui_tests/mobile/test_mobile_navigation_ci.jsindex 59deb80be6..360f15145d 100644--- a/tests/ui_tests/mobile/test_mobile_navigation_ci.js+++ b/tests/ui_tests/mobile/test_mobile_navigation_ci.js@@ -122,7 +122,7 @@ class MobileNavAssertions {timeout: 5000,visible: false // Element may exist but not be visible initially});- } catch (error) {+ } catch {throw new Error(`Mobile navigation not found on ${device} after 5s wait`);}return true;@@ -505,7 +505,7 @@ class MobileNavTestRunner {}// Click History tab- const [response] = await Promise.all([+ const [_response] = await Promise.all([page.waitForNavigation({ waitUntil: 'domcontentloaded', timeout: 10000 }),page.click('.ldr-mobile-nav-tab[data-tab-id="history"]')]);diff --git a/tests/ui_tests/mobile/test_ui_functionality_ci.js b/tests/ui_tests/mobile/test_ui_functionality_ci.jsindex 99ab93278e..47a43318f9 100644--- a/tests/ui_tests/mobile/test_ui_functionality_ci.js+++ b/tests/ui_tests/mobile/test_ui_functionality_ci.js@@ -17,7 +17,6 @@* - CI: Set to 'true' for CI mode* - HEADLESS: 'true' or 'false' (default: true)*/-const { setupTest, teardownTest, TestResults, log, delay, waitForVisible, config, navigateTo, withTimeout } = require('../test_lib');// ============================================================================@@ -412,7 +411,7 @@ const NavigationTests = {for (const pageInfo of pages) {await navigateTo(page, `${baseUrl}${pageInfo.url}`);- const hasActive = await page.evaluate((url) => {+ const hasActive = await page.evaluate(() => {const sidebar = document.querySelector('.ldr-sidebar');if (!sidebar) return { hasSidebar: false };diff --git a/tests/ui_tests/model_helper.js b/tests/ui_tests/model_helper.jsindex 589e5b2de4..79c700d1ef 100644--- a/tests/ui_tests/model_helper.js+++ b/tests/ui_tests/model_helper.js@@ -82,7 +82,7 @@ async function setupDefaultModel(page, options = {}) {// Wait for DOM to be hydrated before interactingtry {await page.waitForSelector('#model_provider', { timeout: 5000 });- } catch (e) {+ } catch {console.error('model_helper: #model_provider not found within 5s');return false;}diff --git a/tests/ui_tests/playwright/tests/metrics-subpages-mobile.spec.js b/tests/ui_tests/playwright/tests/metrics-subpages-mobile.spec.jsindex 411ca6853e..eec84d816d 100644--- a/tests/ui_tests/playwright/tests/metrics-subpages-mobile.spec.js+++ b/tests/ui_tests/playwright/tests/metrics-subpages-mobile.spec.js@@ -267,7 +267,7 @@ test.describe('Context Overflow Page - Specific Tests', () => {await expect(header).toBeVisible();});- test('time range selector is visible', async ({ page, isMobile }) => {+ test('time range selector is visible', async ({ page, _isMobile }) => {const timeRangeSelector = page.locator('.ldr-time-range-selector');await expect(timeRangeSelector).toBeVisible();diff --git a/tests/ui_tests/playwright/tests/mobile-components.spec.js b/tests/ui_tests/playwright/tests/mobile-components.spec.jsindex a55562be10..ad8cadd123 100644--- a/tests/ui_tests/playwright/tests/mobile-components.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-components.spec.js@@ -20,7 +20,7 @@ const { ensureSheetsClosed } = require('./helpers/mobile-utils');// ============================================test.describe('Mobile Navigation Components', () => {- test('Mobile nav - closed state', async ({ page, isMobile, browserName }, testInfo) => {+ test('Mobile nav - closed state', async ({ page, isMobile, _browserName }, testInfo) => {if (!isMobile) {test.skip();return;diff --git a/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js b/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.jsindex 25766b1620..0244a77b9f 100644--- a/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js+++ b/tests/ui_tests/playwright/tests/mobile-ui-audit.spec.js@@ -348,14 +348,14 @@ test.describe('Mobile UI Audit - Specific Elements', () => {// Assert on critical form elementsconst textarea = formElements.find(e => e.name === 'Query Textarea');if (textarea) {- const [width, height] = textarea.size.split('x').map(Number);+ const [_width, height] = textarea.size.split('x').map(Number);expect(height, 'Query textarea should be at least 80px tall').toBeGreaterThanOrEqual(80);expect(textarea.fontSize, 'Query textarea font >= 16px (prevents iOS zoom)').toBeGreaterThanOrEqual(16);}const startBtn = formElements.find(e => e.name === 'Start Research Button');if (startBtn) {- const [width, height] = startBtn.size.split('x').map(Number);+ const [_width, height] = startBtn.size.split('x').map(Number);expect(height, 'Start button meets touch target minimum').toBeGreaterThanOrEqual(44);}});@@ -474,7 +474,7 @@ test.describe('Mobile UI Audit - Specific Elements', () => {// Check that action buttons meet touch target requirementsconst smallButtons = newsInfo.actionButtons.filter(b => {- const [width, height] = b.size.split('x').map(Number);+ const [_width, height] = b.size.split('x').map(Number);return height < 44;});diff --git a/tests/ui_tests/playwright/tests/settings-subpages-mobile.spec.js b/tests/ui_tests/playwright/tests/settings-subpages-mobile.spec.jsindex 9e1b8eb76a..fe5c6a4031 100644--- a/tests/ui_tests/playwright/tests/settings-subpages-mobile.spec.js+++ b/tests/ui_tests/playwright/tests/settings-subpages-mobile.spec.js@@ -136,7 +136,7 @@ test.describe('Settings Tab Navigation', () => {await expect(allSettingsTab).toHaveClass(/active/);});- test('can click through tabs', async ({ page, isMobile }) => {+ test('can click through tabs', async ({ page, _isMobile }) => {// Skip first tab (already active) and test clicking othersfor (const tab of SETTINGS_TABS.slice(1, 3)) {const tabElement = page.locator(tab.selector);diff --git a/tests/ui_tests/puppeteer_config.js b/tests/ui_tests/puppeteer_config.jsindex 61ae5f101e..f0b8ed32bd 100644--- a/tests/ui_tests/puppeteer_config.js+++ b/tests/ui_tests/puppeteer_config.js@@ -90,7 +90,7 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {console.log(' Found executables:');findResults.split('\n').forEach(path => console.log(` - ${path}`));}- } catch (e) {+ } catch {console.log(' Could not search /usr directories');}@@ -166,7 +166,7 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {console.log(` ⚠️ File exists but is not executable`);}}- } catch (e) {+ } catch {// Silent fail for glob patterns}}diff --git a/tests/ui_tests/run_all_tests.js b/tests/ui_tests/run_all_tests.jsindex 2811195ebc..c7a0d418a2 100644--- a/tests/ui_tests/run_all_tests.js+++ b/tests/ui_tests/run_all_tests.js@@ -55,7 +55,7 @@ async function waitForServer(maxWaitMs = 60000) {return true;}wasDown = true;- } catch (e) {+ } catch {wasDown = true;}await new Promise(r => setTimeout(r, delay));diff --git a/tests/ui_tests/run_core_tests.js b/tests/ui_tests/run_core_tests.jsindex c310483d34..111c23a418 100644--- a/tests/ui_tests/run_core_tests.js+++ b/tests/ui_tests/run_core_tests.js@@ -57,7 +57,6 @@ async function runTest(testFile) {cwd: __dirname,env: { ...process.env, NODE_ENV: 'test' }});-let lastOutput = '';let errorOutput = '';@@ -135,7 +134,7 @@ async function runCoreTests() {// Check if server is runningconst http = require('http');const serverCheck = await new Promise((resolve) => {- http.get('http://127.0.0.1:5000/', (res) => {+ http.get('http://127.0.0.1:5000/', () => {resolve(true);}).on('error', () => {resolve(false);diff --git a/tests/ui_tests/test_api_key_comprehensive.js b/tests/ui_tests/test_api_key_comprehensive.jsindex 7086a1ad33..07bda117c4 100644--- a/tests/ui_tests/test_api_key_comprehensive.js+++ b/tests/ui_tests/test_api_key_comprehensive.js@@ -195,7 +195,7 @@ async function runComprehensiveApiKeyTest() {break;}}- } catch (e) {+ } catch {// Continue with next selector}}diff --git a/tests/ui_tests/test_api_key_enter_save.js b/tests/ui_tests/test_api_key_enter_save.jsindex e92b9c4332..f891e7bf10 100644--- a/tests/ui_tests/test_api_key_enter_save.js+++ b/tests/ui_tests/test_api_key_enter_save.js@@ -107,7 +107,7 @@ function log(message, type = 'info') {log(`Found API key input with selector: ${selector}`, 'success');break;}- } catch (e) {+ } catch {// Continue with next selector}}diff --git a/tests/ui_tests/test_api_key_inputs.js b/tests/ui_tests/test_api_key_inputs.jsindex dfac8225e7..34e21b808d 100644--- a/tests/ui_tests/test_api_key_inputs.js+++ b/tests/ui_tests/test_api_key_inputs.js@@ -216,7 +216,7 @@ async function testApiKeyInputs() {!anyVisible,anyVisible ? 'some API key fields visible' : 'all hidden correctly');- } catch (e) {+ } catch {// Provider may not be in the dropdown, that's OKconsole.log(` ⏭️ ${localProvider} provider not in dropdown, skipping`);}@@ -295,7 +295,7 @@ async function testApiKeyInputs() {path: path.join(screenshotsDir, 'api_key_inputs_error.png'),fullPage: true});- } catch (e) {+ } catch {// Ignore screenshot errors}diff --git a/tests/ui_tests/test_api_key_integrated.js b/tests/ui_tests/test_api_key_integrated.jsindex 40352af0eb..1ddf4bd5a9 100644--- a/tests/ui_tests/test_api_key_integrated.js+++ b/tests/ui_tests/test_api_key_integrated.js@@ -112,7 +112,7 @@ async function getCSRFToken(page) {path: `dialog_screenshot_${Date.now()}.png`,fullPage: true});- } catch (e) {+ } catch {log('Failed to capture screenshot during dialog', 'error');}diff --git a/tests/ui_tests/test_api_key_settings.js b/tests/ui_tests/test_api_key_settings.jsindex c4729fb2a6..dea0a60e87 100644--- a/tests/ui_tests/test_api_key_settings.js+++ b/tests/ui_tests/test_api_key_settings.js@@ -86,7 +86,7 @@ function log(message, type = 'info') {// Wait for settings to load - try multiple selectorstry {await page.waitForSelector('.settings-container, #settings-content, .settings-page, main', { timeout: 5000 });- } catch (e) {+ } catch {log('Settings container not found, continuing anyway...', 'warn');}@@ -117,7 +117,7 @@ function log(message, type = 'info') {clicked = true;break;}- } catch (e) {+ } catch {// Try next selector}}@@ -132,7 +132,7 @@ function log(message, type = 'info') {log(`Clicked OpenAI Endpoint section with selector: ${selector}`, 'success');break;}- } catch (e) {+ } catch {// Try next selector}}@@ -203,7 +203,7 @@ function log(message, type = 'info') {log(`Found save button with selector: ${selector}`, 'success');break;}- } catch (e) {+ } catch {// Continue to next selector}}@@ -236,7 +236,7 @@ function log(message, type = 'info') {await new Promise(resolve => setTimeout(resolve, 500));break;}- } catch (e) {+ } catch {// Try next selector}}@@ -248,7 +248,7 @@ function log(message, type = 'info') {await new Promise(resolve => setTimeout(resolve, 500));break;}- } catch (e) {+ } catch {// Try next selector}}diff --git a/tests/ui_tests/test_auth_comprehensive_ci.js b/tests/ui_tests/test_auth_comprehensive_ci.jsindex 49ecac2641..3049e89d6c 100644--- a/tests/ui_tests/test_auth_comprehensive_ci.js+++ b/tests/ui_tests/test_auth_comprehensive_ci.js@@ -45,7 +45,6 @@ const LoginPageTests = {if (!result.hasPassword) {return { passed: null, skipped: true, message: 'Password field not visible (may use different login flow)' };}-const passed = result.hasForm && result.hasUsername && result.hasPassword && result.hasSubmit;return {passed: true,diff --git a/tests/ui_tests/test_auth_flow.js b/tests/ui_tests/test_auth_flow.jsindex 9521a870b6..2db05c6822 100644--- a/tests/ui_tests/test_auth_flow.js+++ b/tests/ui_tests/test_auth_flow.js@@ -158,7 +158,7 @@ async function testAuthFlow() {// Check current URL for debuggingtry {console.log('Current URL:', page.url());- } catch (e) {+ } catch {console.log('Could not get current URL');}@@ -166,7 +166,7 @@ async function testAuthFlow() {try {const errorText = await page.$eval('.alert-danger, .error-message', el => el.textContent);console.log('Error message on page:', errorText);- } catch (e) {+ } catch {// No error message found}diff --git a/tests/ui_tests/test_benchmark_settings.js b/tests/ui_tests/test_benchmark_settings.jsindex eafc46668e..2d4d82f8bd 100644--- a/tests/ui_tests/test_benchmark_settings.js+++ b/tests/ui_tests/test_benchmark_settings.js@@ -59,12 +59,11 @@ async function waitForTextOnPage(page, text, timeout = 30000) {);logSuccess(`Found text: "${text}"`);return true;- } catch (error) {+ } catch {logError(`Text not found within ${timeout}ms: "${text}"`);return false;}}-async function typeWithDelay(page, selector, text, delay = 50) {await page.focus(selector);await page.evaluate(selector => {@@ -86,7 +85,7 @@ async function keepSessionAlive(page) {});console.log('Keep-alive response:', response.status);});- } catch (e) {+ } catch {// Ignore errors}}@@ -198,7 +197,7 @@ async function keepSessionAlive(page) {break;}}- } catch (e) {+ } catch {// Some selectors might throw errors, continue}}@@ -254,7 +253,7 @@ async function keepSessionAlive(page) {break;}}- } catch (e) {+ } catch {// Some selectors might throw errors, continue}}diff --git a/tests/ui_tests/test_change_password_validation.js b/tests/ui_tests/test_change_password_validation.jsindex 35e5cdf0b0..2cfd1757a1 100644--- a/tests/ui_tests/test_change_password_validation.js+++ b/tests/ui_tests/test_change_password_validation.js@@ -102,7 +102,7 @@ async function testChangePasswordValidation() {return form && input;}, { timeout: 15000 });console.log('✅ Change password page loaded\n');- } catch (e) {+ } catch {console.log('⚠️ Change password page not accessible');console.log(` Current URL: ${page.url()}`);// Log page content for debuggingdiff --git a/tests/ui_tests/test_check_user_database.js b/tests/ui_tests/test_check_user_database.jsindex 6d3cb006f4..ce5df34eaf 100644--- a/tests/ui_tests/test_check_user_database.js+++ b/tests/ui_tests/test_check_user_database.js@@ -80,7 +80,7 @@ async function checkUserDatabase() {let data;try {data = JSON.parse(text);- } catch (e) {+ } catch {data = { parseError: true, text: text };}diff --git a/tests/ui_tests/test_checkbox_settings.js b/tests/ui_tests/test_checkbox_settings.jsindex 2db9c58ca7..1009bd096e 100644--- a/tests/ui_tests/test_checkbox_settings.js+++ b/tests/ui_tests/test_checkbox_settings.js@@ -270,7 +270,7 @@ const waitForAjaxResponse = async (responses, timeout = TEST_CONFIG.TIMEOUTS.AJAtry {await authHelper.login('testuser', 'T3st!Secure#2024$LDR');await page.goto(TEST_CONFIG.URLS.SETTINGS, { waitUntil: 'domcontentloaded' });- } catch (loginError) {+ } catch {console.log('⚠️ Default user login failed, test may not work with settings');}}@@ -279,7 +279,7 @@ const waitForAjaxResponse = async (responses, timeout = TEST_CONFIG.TIMEOUTS.AJA// Wait for settings page to load - use configured selectorstry {await page.waitForSelector(TEST_CONFIG.SELECTORS.SETTINGS_FORM, { timeout: TEST_CONFIG.TIMEOUTS.SUBMIT_NAVIGATION });- } catch (e) {+ } catch {console.log('Settings page elements not found with default selectors, continuing anyway...');}// Wait for settings to actually render - be more patient@@ -288,7 +288,7 @@ const waitForAjaxResponse = async (responses, timeout = TEST_CONFIG.TIMEOUTS.AJA// Wait for any settings section to appearawait page.waitForSelector('.ldr-settings-section, .ldr-settings-item, input[type="checkbox"]', { timeout: 15000 });console.log('✅ Settings elements found on page');- } catch (e) {+ } catch {console.log('⚠️ WARNING: Settings elements not found after 15 seconds');// Take a screenshot for debuggingawait page.screenshot({ path: '/tmp/settings_page_debug.png' });@@ -453,7 +453,7 @@ const waitForAjaxResponse = async (responses, timeout = TEST_CONFIG.TIMEOUTS.AJAdata: json,timestamp: Date.now()});- } catch (e) {+ } catch {ajaxResponses.push({status: resp.status(),statusText: resp.statusText(),diff --git a/tests/ui_tests/test_concurrent_limit.js b/tests/ui_tests/test_concurrent_limit.jsindex 483e2b1cc9..6b44ebb16c 100644--- a/tests/ui_tests/test_concurrent_limit.js+++ b/tests/ui_tests/test_concurrent_limit.js@@ -3,7 +3,6 @@ const { browserConfig } = require('./browser_config');const AuthHelper = require('./auth_helper');const { CI_TEST_USER } = require('./auth_helper');const { getPuppeteerLaunchOptions } = require('./puppeteer_config');-const isCI = !!process.env.CI;async function submitResearchBatch(page, queries) {@@ -60,7 +59,7 @@ async function submitResearchBatch(page, queries) {const data = await response.json();page.off('response', handler);resolve(data);- } catch (e) {+ } catch {resolve(null);}}diff --git a/tests/ui_tests/test_context_overflow_standalone.js b/tests/ui_tests/test_context_overflow_standalone.jsindex 161ac0cc34..1f0990fa17 100644--- a/tests/ui_tests/test_context_overflow_standalone.js+++ b/tests/ui_tests/test_context_overflow_standalone.js@@ -85,7 +85,7 @@ async function testContextOverflow() {content && content.style.display !== 'none';},{ timeout: 15000 }- ).catch(err => {+ ).catch(_err => {console.log('❌ Timeout waiting for data to load');return null;});@@ -185,7 +185,7 @@ async function testContextOverflow() {let data;try {data = JSON.parse(text);- } catch (e) {+ } catch {data = { parseError: true, rawText: text.substring(0, 200) };}diff --git a/tests/ui_tests/test_direct_mode.js b/tests/ui_tests/test_direct_mode.jsindex 2ae9e3aa88..23f036af54 100644--- a/tests/ui_tests/test_direct_mode.js+++ b/tests/ui_tests/test_direct_mode.js@@ -40,7 +40,7 @@ async function submitResearchBatch(page, queries) {const data = await response.json();page.off('response', handler);resolve(data);- } catch (e) {+ } catch {resolve(null);}}diff --git a/tests/ui_tests/test_export_functionality.js b/tests/ui_tests/test_export_functionality.jsindex bb04104a64..789e048fca 100644--- a/tests/ui_tests/test_export_functionality.js+++ b/tests/ui_tests/test_export_functionality.js@@ -44,7 +44,7 @@ async function waitForSelectorWithTimeout(page, selector, timeout = 5000) {try {await page.waitForSelector(selector, { timeout });return true;- } catch (err) {+ } catch {return false;}}@@ -149,7 +149,7 @@ async function createResearchAndWait(page) {// If no navigation happens within 5s, research was queued/asyncdelay(5000)]);- } catch (navErr) {+ } catch {// Navigation timeout is fine - page might stay on home pagelog(`ℹ️ No navigation after submit (research may be queued)`, 'info');}@@ -228,7 +228,7 @@ async function createResearchAndWait(page) {}return false;});- } catch (err) {+ } catch {// If there's an error, assume research is processinglog('⚠️ Could not check research status, continuing...', 'warning');hasContent = true;@@ -372,7 +372,7 @@ async function testExportFunctionality() {log('✅ Export menu opens successfully', 'success');}}- } catch (err) {+ } catch {log('⚠️ Could not interact with export button', 'warning');}} else {@@ -418,7 +418,7 @@ async function testExportFunctionality() {} else {log('ℹ️ No history items found (may be expected for new user)', 'info');}- } catch (err) {+ } catch {log('⚠️ Could not check history page exports', 'warning');}diff --git a/tests/ui_tests/test_followup_research.js b/tests/ui_tests/test_followup_research.jsindex bb3ce85f01..9aa5e7335d 100644--- a/tests/ui_tests/test_followup_research.js+++ b/tests/ui_tests/test_followup_research.js@@ -341,7 +341,7 @@ async function testFollowUpResearch() {await page.waitForNavigation({waitUntil: 'domcontentloaded',timeout: TIMEOUT- }).catch(e => {+ }).catch(_e => {log('⚠️ Navigation timeout, checking URL...', 'warning');});diff --git a/tests/ui_tests/test_followup_research_ci.js b/tests/ui_tests/test_followup_research_ci.jsindex c9022e11d0..a75fbc21bd 100644--- a/tests/ui_tests/test_followup_research_ci.js+++ b/tests/ui_tests/test_followup_research_ci.js@@ -396,7 +396,7 @@ const FollowupApiTests = {exists: response.status !== 404,status: response.status};- } catch (e) {+ } catch {// Try GETtry {const getResponse = await fetch(`${url}/followup/prepare`);diff --git a/tests/ui_tests/test_full_navigation.js b/tests/ui_tests/test_full_navigation.jsindex 92758e668c..f1e1afcc74 100644--- a/tests/ui_tests/test_full_navigation.js+++ b/tests/ui_tests/test_full_navigation.js@@ -57,7 +57,7 @@ async function testFullNavigation() {await page.waitForSelector(pageInfo.waitFor, { timeout: 5000 });console.log(`✅ ${pageInfo.name} loaded successfully`);- } catch (e) {+ } catch {console.log(`⚠️ ${pageInfo.name} - Could not find expected element: ${pageInfo.waitFor}`);}diff --git a/tests/ui_tests/test_history_page.js b/tests/ui_tests/test_history_page.jsindex 82c75e29b9..4d99af6724 100644--- a/tests/ui_tests/test_history_page.js+++ b/tests/ui_tests/test_history_page.js@@ -92,7 +92,7 @@ async function createResearch(page, query, waitForCompletion = false) {break;}}- } catch (e) {+ } catch {// Continue waiting}diff --git a/tests/ui_tests/test_history_page_ci.js b/tests/ui_tests/test_history_page_ci.jsindex 17524b2f9c..b18a893840 100644--- a/tests/ui_tests/test_history_page_ci.js+++ b/tests/ui_tests/test_history_page_ci.js@@ -6,7 +6,6 @@** Run: node test_history_page_ci.js*/-const { setupTest, teardownTest, TestResults, log, delay, navigateTo, withTimeout } = require('./test_lib');// ============================================================================diff --git a/tests/ui_tests/test_keyboard_accessibility_ci.js b/tests/ui_tests/test_keyboard_accessibility_ci.jsindex b598c51fa7..2c6482da47 100644--- a/tests/ui_tests/test_keyboard_accessibility_ci.js+++ b/tests/ui_tests/test_keyboard_accessibility_ci.js@@ -522,7 +522,7 @@ const AriaLabelsTests = {});const totalRoles = Object.values(result).reduce((a, b) => a + b, 0);- const rolesList = Object.entries(result).filter(([k, v]) => v > 0).map(([k, v]) => `${k}:${v}`);+ const rolesList = Object.entries(result).filter(([_k, v]) => v > 0).map(([k, v]) => `${k}:${v}`);return {passed: totalRoles > 0,diff --git a/tests/ui_tests/test_lib/test_utils.js b/tests/ui_tests/test_lib/test_utils.jsindex 30db0aa564..05963cad69 100644--- a/tests/ui_tests/test_lib/test_utils.js+++ b/tests/ui_tests/test_lib/test_utils.js@@ -186,7 +186,7 @@ async function navigateTo(page, url, options = {}) {if (currentPath === targetPath) {return null;}- } catch (e) {+ } catch {// about:blank or invalid URL — need to navigate}@@ -216,7 +216,7 @@ async function waitFor(page, selector, options = {}) {visible: options.visible,});return true;- } catch (e) {+ } catch {throw new Error(`Element "${selector}" not found after ${timeout}ms`);}}@@ -242,7 +242,7 @@ async function waitForVisible(page, selector, timeout = 5000) {selector);return true;- } catch (e) {+ } catch {return false;}}diff --git a/tests/ui_tests/test_library_collections_ci.js b/tests/ui_tests/test_library_collections_ci.jsindex b5a6b909ba..d935bd3871 100644--- a/tests/ui_tests/test_library_collections_ci.js+++ b/tests/ui_tests/test_library_collections_ci.js@@ -6,7 +6,6 @@** Run: node test_library_collections_ci.js*/-const { setupTest, teardownTest, TestResults, log, delay, navigateTo, withTimeout } = require('./test_lib');// ============================================================================@@ -331,7 +330,7 @@ const LibraryApiTests = {if (response.ok) {return { ok: true, endpoint, status: response.status };}- } catch (e) {+ } catch {continue;}}diff --git a/tests/ui_tests/test_library_documents_ci.js b/tests/ui_tests/test_library_documents_ci.jsindex 088904a53f..87bdd00a47 100644--- a/tests/ui_tests/test_library_documents_ci.js+++ b/tests/ui_tests/test_library_documents_ci.js@@ -232,7 +232,7 @@ const FilterControlsTests = {hasWeek: !!dateButtons.week,hasMonth: !!dateButtons.month,hasAll: !!dateButtons.all,- foundButtons: Object.entries(dateButtons).filter(([k, v]) => v).map(([k]) => k)+ foundButtons: Object.entries(dateButtons).filter(([_k, v]) => v).map(([k]) => k)};});diff --git a/tests/ui_tests/test_loading_feedback_ci.js b/tests/ui_tests/test_loading_feedback_ci.jsindex 753d6ed6d6..177d350234 100644--- a/tests/ui_tests/test_loading_feedback_ci.js+++ b/tests/ui_tests/test_loading_feedback_ci.js@@ -35,7 +35,7 @@ const LoadingStatesTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -93,7 +93,7 @@ const LoadingStatesTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -151,7 +151,7 @@ const LoadingStatesTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -201,7 +201,7 @@ const ToastNotificationsTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -279,7 +279,7 @@ const FeedbackTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -326,7 +326,7 @@ const FeedbackTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -368,7 +368,7 @@ const FeedbackTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -424,7 +424,7 @@ const ProgressIndicatorsTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}@@ -637,7 +637,7 @@ const AnimationTests = {}}}- } catch (e) {+ } catch {// Cross-origin stylesheets will throw}diff --git a/tests/ui_tests/test_login_validation.js b/tests/ui_tests/test_login_validation.jsindex 40a3140ea7..65ab0c6e54 100644--- a/tests/ui_tests/test_login_validation.js+++ b/tests/ui_tests/test_login_validation.js@@ -241,7 +241,7 @@ async function testLoginValidation() {const errorText = await page.evaluate(el => el.textContent, loginError);console.log(`⚠️ Login failed with error: ${errorText.trim().substring(0, 50)}`);}- } catch (e) {+ } catch {// Ignore errors when checking for alert}console.log('⚠️ Still on login page - test user may not have been created');diff --git a/tests/ui_tests/test_metrics.js b/tests/ui_tests/test_metrics.jsindex f40fff4500..ed9b744152 100644--- a/tests/ui_tests/test_metrics.js+++ b/tests/ui_tests/test_metrics.js@@ -4,7 +4,7 @@ const { exec } = require('child_process');// First, let's just test if we can access the page and get the HTMLconsole.log('Testing metrics page access...');-exec('curl -s http://127.0.0.1:5000/metrics/', (error, stdout, stderr) => {+exec('curl -s http://127.0.0.1:5000/metrics/', (error, stdout) => {if (error) {console.error('Error accessing page:', error);return;@@ -26,7 +26,7 @@ exec('curl -s http://127.0.0.1:5000/metrics/', (error, stdout, stderr) => {// Test the API endpoints that the JavaScript would callconsole.log('\nTesting API endpoints...');- exec('curl -s "http://127.0.0.1:5000/metrics/api/metrics?period=30d&mode=all"', (error, stdout, stderr) => {+ exec('curl -s "http://127.0.0.1:5000/metrics/api/metrics?period=30d&mode=all"', (error, stdout) => {if (error) {console.error('Basic API error:', error);return;@@ -42,12 +42,12 @@ exec('curl -s http://127.0.0.1:5000/metrics/', (error, stdout, stderr) => {} else {console.log('✗ Basic API returned error status');}- } catch (e) {+ } catch {console.log('✗ Basic API returned invalid JSON');}});- exec('curl -s "http://127.0.0.1:5000/metrics/api/metrics/enhanced?period=30d&mode=all"', (error, stdout, stderr) => {+ exec('curl -s "http://127.0.0.1:5000/metrics/api/metrics/enhanced?period=30d&mode=all"', (error, stdout) => {if (error) {console.error('Enhanced API error:', error);return;@@ -63,7 +63,7 @@ exec('curl -s http://127.0.0.1:5000/metrics/', (error, stdout, stderr) => {} else {console.log('✗ Enhanced API returned error status');}- } catch (e) {+ } catch {console.log('✗ Enhanced API returned invalid JSON');}});diff --git a/tests/ui_tests/test_metrics_dashboard.js b/tests/ui_tests/test_metrics_dashboard.jsindex 7ba9732dc4..7fd1b5fcd7 100644--- a/tests/ui_tests/test_metrics_dashboard.js+++ b/tests/ui_tests/test_metrics_dashboard.js@@ -84,7 +84,7 @@ async function createResearch(page, query) {log('✅ Research submitted successfully', 'success');return;}- } catch (err) {+ } catch {log('⚠️ Could not check research status', 'warning');return;}@@ -140,7 +140,7 @@ async function testMetricsDashboard() {try {await page.waitForSelector('.metrics-container, #metrics-dashboard, .container h1, [data-page="metrics"]', { timeout: 10000 });log('✅ Metrics page loaded', 'success');- } catch (err) {+ } catch {// Check if we're on the metrics page by URLconst currentUrl = page.url();if (currentUrl.includes('/metrics')) {diff --git a/tests/ui_tests/test_metrics_display.js b/tests/ui_tests/test_metrics_display.jsindex 06c2df56be..93565e9a33 100644--- a/tests/ui_tests/test_metrics_display.js+++ b/tests/ui_tests/test_metrics_display.js@@ -76,7 +76,7 @@ async function testMetricsDisplay() {}};});- } catch (err) {+ } catch {console.log('⚠️ Error evaluating page, likely frame detached');// Provide default valuespageContent = {diff --git a/tests/ui_tests/test_metrics_full_flow.js b/tests/ui_tests/test_metrics_full_flow.jsindex 91ff610875..e6b722b3d8 100644--- a/tests/ui_tests/test_metrics_full_flow.js+++ b/tests/ui_tests/test_metrics_full_flow.js@@ -141,7 +141,7 @@ async function startAndCompleteResearch(page, query) {log(`Status: ${status.text}`, 'info');}- } catch (e) {+ } catch {// Page might be reloading}diff --git a/tests/ui_tests/test_metrics_verification.js b/tests/ui_tests/test_metrics_verification.jsindex 99a6859346..20f3482764 100644--- a/tests/ui_tests/test_metrics_verification.js+++ b/tests/ui_tests/test_metrics_verification.js@@ -75,7 +75,7 @@ async function startResearch(page, query) {// Wait for form to be ready - try multiple selectorstry {await page.waitForSelector('#query, #research_query, input[name="query"]', { visible: true, timeout: 5000 });- } catch (e) {+ } catch {log('Research form not found with expected selectors', 'warning');}@@ -109,7 +109,7 @@ async function startResearch(page, query) {return match ? match[1] : null;}-async function waitForResearchProgress(page, maxWaitTime = 5000) {+async function waitForResearchProgress(page, _maxWaitTime = 5000) {log('Checking research submission...', 'info');// In CI, we don't wait for research to complete@@ -122,7 +122,7 @@ async function waitForResearchProgress(page, maxWaitTime = 5000) {log('Research submitted successfully', 'success');return true;}- } catch (e) {+ } catch {log('Could not check research status', 'warning');}diff --git a/tests/ui_tests/test_mobile_interactions_ci.js b/tests/ui_tests/test_mobile_interactions_ci.jsindex 967edb7f8e..3b3dae7958 100644--- a/tests/ui_tests/test_mobile_interactions_ci.js+++ b/tests/ui_tests/test_mobile_interactions_ci.js@@ -6,7 +6,6 @@** Run: node test_mobile_interactions_ci.js*/-const { setupTest, teardownTest, TestResults, log, delay, viewports, navigateTo, withTimeout } = require('./test_lib');// ============================================================================diff --git a/tests/ui_tests/test_news_feed_ci.js b/tests/ui_tests/test_news_feed_ci.jsindex aae6205741..b35dde14b7 100644--- a/tests/ui_tests/test_news_feed_ci.js+++ b/tests/ui_tests/test_news_feed_ci.js@@ -187,7 +187,7 @@ const NewsFiltersTests = {};return {- foundButtons: Object.entries(timeButtons).filter(([k, v]) => v).map(([k]) => k)+ foundButtons: Object.entries(timeButtons).filter(([_k, v]) => v).map(([k]) => k)};});diff --git a/tests/ui_tests/test_news_subscription_form.js b/tests/ui_tests/test_news_subscription_form.jsindex 4d672cfe3a..9b9c4f676a 100644--- a/tests/ui_tests/test_news_subscription_form.js+++ b/tests/ui_tests/test_news_subscription_form.js@@ -158,7 +158,7 @@ async function testNewsSubscriptionForm() {try {const data = JSON.parse(postData);console.log(' Body:', JSON.stringify(data, null, 2));- } catch (e) {+ } catch {console.log(' Body (raw):', postData);}}diff --git a/tests/ui_tests/test_realtime_progress_ci.js b/tests/ui_tests/test_realtime_progress_ci.jsindex 4ae8f65ad5..95fcad6381 100644--- a/tests/ui_tests/test_realtime_progress_ci.js+++ b/tests/ui_tests/test_realtime_progress_ci.js@@ -6,7 +6,6 @@** Run: node test_realtime_progress_ci.js*/-const { setupTest, teardownTest, TestResults, log, delay, navigateTo, withTimeout } = require('./test_lib');// ============================================================================diff --git a/tests/ui_tests/test_research_cancellation.js b/tests/ui_tests/test_research_cancellation.jsindex 4ccc2b858d..1a1a029200 100644--- a/tests/ui_tests/test_research_cancellation.js+++ b/tests/ui_tests/test_research_cancellation.js@@ -120,7 +120,7 @@ async function testCancellation() {let cancelButton = null;try {cancelButton = await page.waitForSelector('.cancel-btn, .stop-btn, button[data-action="cancel"]', { timeout: 5000 });- } catch (e) {+ } catch {log('⚠️ No cancel button found (may not be visible yet)', 'warning');}@@ -158,7 +158,7 @@ async function testCancellation() {cancelStatus.status.toLowerCase().includes('suspended')) {log('✅ Research cancelled successfully', 'success');}- } catch (e) {+ } catch {// Page may have navigated after cancellation - that's OKlog('✅ Cancellation triggered (page state changed)', 'success');}@@ -189,7 +189,7 @@ async function testCancellation() {text: progressText?.textContent || ''};});- } catch (e) {+ } catch {log('⚠️ Could not get progress (page navigating)', 'warning');}@@ -199,7 +199,7 @@ async function testCancellation() {let cancelButton2 = null;try {cancelButton2 = await page.waitForSelector('.cancel-btn, .stop-btn, button[data-action="cancel"]', { timeout: 5000 });- } catch (e) {+ } catch {log('⚠️ No cancel button found for mid-stage test', 'warning');}@@ -225,7 +225,7 @@ async function testCancellation() {log(`📊 After mid-stage cancellation:`, 'info');log(` - Progress: ${afterCancel.progress}`, 'info');log(` - Status: ${afterCancel.status}`, 'info');- } catch (e) {+ } catch {log('✅ Cancellation triggered (page state changed)', 'success');}@@ -269,7 +269,7 @@ async function testCancellation() {} else {log('⚠️ No cancelled items found in history (research may have completed too fast)', 'warning');}- } catch (e) {+ } catch {log('⚠️ Could not check history (page issue)', 'warning');}@@ -293,7 +293,7 @@ async function testCancellation() {} else {log('ℹ️ No resume functionality found (might not be implemented)', 'info');}- } catch (e) {+ } catch {log('ℹ️ Resume test skipped (page issue)', 'info');}@@ -315,7 +315,7 @@ async function testCancellation() {await quickCancel.click();log('✅ Immediate cancellation tested', 'success');}- } catch (e) {+ } catch {log('⚠️ Quick cancel button not found (research may have completed)', 'warning');}diff --git a/tests/ui_tests/test_research_diagnosis.js b/tests/ui_tests/test_research_diagnosis.jsindex e2e6fb278e..c02722decc 100644--- a/tests/ui_tests/test_research_diagnosis.js+++ b/tests/ui_tests/test_research_diagnosis.js@@ -64,7 +64,7 @@ async function testResearchDiagnosis() {try {const body = await response.text();console.log('📄 Error Response Body:', body);- } catch (e) {+ } catch {console.log('Could not read response body');}}diff --git a/tests/ui_tests/test_research_form.js b/tests/ui_tests/test_research_form.jsindex 06aa09b522..cd50af08d6 100644--- a/tests/ui_tests/test_research_form.js+++ b/tests/ui_tests/test_research_form.js@@ -35,7 +35,7 @@ async function testResearchForm() {const forms = document.querySelectorAll('form');const formData = [];- forms.forEach((form, index) => {+ forms.forEach((form) => {const inputs = form.querySelectorAll('input, select, textarea');const buttons = form.querySelectorAll('button');diff --git a/tests/ui_tests/test_research_form_ci.js b/tests/ui_tests/test_research_form_ci.jsindex 0b47dbbf9a..3c7bf14cd2 100644--- a/tests/ui_tests/test_research_form_ci.js+++ b/tests/ui_tests/test_research_form_ci.js@@ -586,7 +586,7 @@ const FormSubmissionTests = {});// Submit form- const [response] = await Promise.all([+ const [_response] = await Promise.all([page.waitForNavigation({ waitUntil: 'domcontentloaded', timeout: 10000 }).catch(() => null),page.click('button[type="submit"], .start-research, #start-research')]);diff --git a/tests/ui_tests/test_research_search_analysis.js b/tests/ui_tests/test_research_search_analysis.jsindex f8469e3478..a52049530e 100644--- a/tests/ui_tests/test_research_search_analysis.js+++ b/tests/ui_tests/test_research_search_analysis.js@@ -198,7 +198,7 @@ async function analyzeSearchFunctionality() {const responseText = await response.text();console.log(`⚠️ Non-200 response: ${responseText}`);}- } catch (error) {+ } catch {console.log('❌ No response received for research submission');}diff --git a/tests/ui_tests/test_research_simple.js b/tests/ui_tests/test_research_simple.jsindex 5cf76690da..b3efa2d2e2 100644--- a/tests/ui_tests/test_research_simple.js+++ b/tests/ui_tests/test_research_simple.js@@ -33,7 +33,7 @@ async function testSimpleResearch() {try {const body = await response.text();console.log(` Body: ${body.substring(0, 200)}...`);- } catch (e) {+ } catch {console.log(` Body: <unable to read>`);}}diff --git a/tests/ui_tests/test_research_submit.js b/tests/ui_tests/test_research_submit.jsindex a47e40988e..4b1554cba5 100644--- a/tests/ui_tests/test_research_submit.js+++ b/tests/ui_tests/test_research_submit.js@@ -165,7 +165,7 @@ const path = require('path');try {const currentUrl = page.url();console.log('Current URL at failure:', currentUrl);- } catch (e) {+ } catch {console.log('Could not get current URL');}diff --git a/tests/ui_tests/test_research_workflow.js b/tests/ui_tests/test_research_workflow.jsindex 56bac93f41..1f1f0b3c87 100644--- a/tests/ui_tests/test_research_workflow.js+++ b/tests/ui_tests/test_research_workflow.js@@ -164,7 +164,7 @@ async function testResearchWorkflow() {]),new Promise((_, reject) => setTimeout(() => reject(new Error('Navigation timeout')), 30000))]);- } catch (navError) {+ } catch {// Check if we're on a research page anywayawait new Promise(resolve => setTimeout(resolve, 3000));}@@ -254,7 +254,7 @@ async function testResearchWorkflow() {if (!page.url().includes('/auth/login')) {navSuccess++;}- } catch (e) {+ } catch {console.log(` ⚠️ Navigation to ${pageInfo.name} failed`);}}diff --git a/tests/ui_tests/test_research_workflow_ci.js b/tests/ui_tests/test_research_workflow_ci.jsindex c2a69bdf2c..48a9f9631a 100644--- a/tests/ui_tests/test_research_workflow_ci.js+++ b/tests/ui_tests/test_research_workflow_ci.js@@ -6,7 +6,6 @@** Run: node test_research_workflow_ci.js*/-const { setupTest, teardownTest, TestResults, log, delay, navigateTo, withTimeout } = require('./test_lib');// ============================================================================diff --git a/tests/ui_tests/test_results_exports_ci.js b/tests/ui_tests/test_results_exports_ci.jsindex 1eab10383e..a6e22169e9 100644--- a/tests/ui_tests/test_results_exports_ci.js+++ b/tests/ui_tests/test_results_exports_ci.js@@ -21,7 +21,7 @@ async function findCompletedResearch(page, baseUrl) {const data = await response.json();const completed = data.items?.find(item => item.status === 'completed');return completed?.id || null;- } catch (e) {+ } catch {return null;}}, baseUrl);diff --git a/tests/ui_tests/test_settings_interactions_ci.js b/tests/ui_tests/test_settings_interactions_ci.jsindex 3c61247005..418117bdd2 100644--- a/tests/ui_tests/test_settings_interactions_ci.js+++ b/tests/ui_tests/test_settings_interactions_ci.js@@ -216,7 +216,7 @@ const SettingsTabsTests = {};});- const foundTabs = Object.entries(result).filter(([k, v]) => v).map(([k]) => k.replace('has', ''));+ const foundTabs = Object.entries(result).filter(([_k, v]) => v).map(([k]) => k.replace('has', ''));return {passed: foundTabs.length > 0,diff --git a/tests/ui_tests/test_settings_pages_ci.js b/tests/ui_tests/test_settings_pages_ci.jsindex 4ed2042d5b..08a72dcb71 100644--- a/tests/ui_tests/test_settings_pages_ci.js+++ b/tests/ui_tests/test_settings_pages_ci.js@@ -6,7 +6,6 @@** Run: node test_settings_pages_ci.js*/-const { setupTest, teardownTest, TestResults, log, delay, waitForVisible, navigateTo, withTimeout } = require('./test_lib');// ============================================================================@@ -127,7 +126,7 @@ const SettingsInputTests = {// Wait for settings form to render (inputs are loaded async via JS)try {await page.waitForSelector('[name="llm.provider"], select[name*="provider"]', { timeout: 15000 });- } catch (e) {+ } catch {return { passed: null, skipped: true, message: 'No model provider setting found (form did not render)' };}@@ -188,7 +187,7 @@ const SettingsInputTests = {// Wait for settings form to render (search.tool is a hidden input in a custom dropdown)try {await page.waitForSelector('[name="search.tool"], select[name*="search"]', { timeout: 15000 });- } catch (e) {+ } catch {return { passed: null, skipped: true, message: 'No search engine setting found (form did not render)' };}@@ -251,7 +250,7 @@ const SettingsInputTests = {// Wait for settings form to rendertry {await page.waitForSelector('[name="llm.temperature"], input[name*="temperature"]', { timeout: 15000 });- } catch (e) {+ } catch {return { passed: null, skipped: true, message: 'No temperature setting found (form did not render)' };}@@ -290,7 +289,7 @@ const SettingsInputTests = {// Wait for settings form to rendertry {await page.waitForSelector('input[name*="api_key"], input[type="password"][name*="key"]', { timeout: 15000 });- } catch (e) {+ } catch {return { passed: null, skipped: true, message: 'No API key fields found (form did not render)' };}@@ -464,7 +463,7 @@ const SettingsStatusTests = {// Wait for settings form to render before checking for ollama elementstry {await page.waitForSelector('[name="llm.provider"], input[name*="api_key"]', { timeout: 15000 });- } catch (e) {+ } catch {// Form didn't render — skip}diff --git a/tests/ui_tests/test_settings_save.js b/tests/ui_tests/test_settings_save.jsindex 6c992c02d0..3182283b08 100644--- a/tests/ui_tests/test_settings_save.js+++ b/tests/ui_tests/test_settings_save.js@@ -86,7 +86,7 @@ async function testSettingsSave() {console.log('⏳ Waiting for save response...');try {await responsePromise;- } catch (e) {+ } catch {console.log('⚠️ Save response not captured (endpoint may differ)');}diff --git a/tests/ui_tests/test_simple_cost.js b/tests/ui_tests/test_simple_cost.jsindex d42ef8f2c5..0aa994309a 100644--- a/tests/ui_tests/test_simple_cost.js+++ b/tests/ui_tests/test_simple_cost.js@@ -23,7 +23,7 @@ const { getPuppeteerLaunchOptions } = require('./puppeteer_config');try {const text = await response.text();console.log('API Data:', text.substring(0, 200));- } catch (e) {}+ } catch {}}});diff --git a/tests/ui_tests/test_star_reviews.js b/tests/ui_tests/test_star_reviews.jsindex da3aeab418..c474ff3ce4 100644--- a/tests/ui_tests/test_star_reviews.js+++ b/tests/ui_tests/test_star_reviews.js@@ -119,7 +119,7 @@ async function testStarReviews() {// Wait for Chart.js to be available (may not load in CI with no data)try {await page.waitForFunction(() => typeof window.Chart !== 'undefined', { timeout: 10000 });- } catch (e) {+ } catch {console.log('⚠️ Chart.js not loaded (may not have data in CI)');}diff --git a/tests/ui_tests/test_suite.js b/tests/ui_tests/test_suite.jsindex 8656aff234..c4def86ed5 100644--- a/tests/ui_tests/test_suite.js+++ b/tests/ui_tests/test_suite.js@@ -32,7 +32,7 @@ const TEST_SUITES = {};async function runTest(testFile) {- return new Promise((resolve, reject) => {+ return new Promise((resolve) => {console.log(` Running: ${testFile}`);const testPath = path.join(__dirname, testFile);diff --git a/tests/ui_tests/test_toast_notifications.js b/tests/ui_tests/test_toast_notifications.jsindex 469044939b..ba99aeb43a 100644--- a/tests/ui_tests/test_toast_notifications.js+++ b/tests/ui_tests/test_toast_notifications.js@@ -88,7 +88,7 @@ const TEST_CONFIG = {timestamp: Date.now()});console.log(`[NETWORK] Response from save_all_settings: ${resp.status()}`);- } catch (e) {+ } catch {// Response already consumed}}@@ -103,11 +103,11 @@ const TEST_CONFIG = {// Try to register/login this specific usertry {await authHelper.ensureAuthenticated(testUser, testPassword);- } catch (e) {+ } catch {console.log('Initial auth failed, trying direct registration...');try {await authHelper.register(testUser, testPassword);- } catch (regErr) {+ } catch {console.log('Registration failed (user may exist), trying login...');await authHelper.login(testUser, testPassword);}