Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(logpanel): 'Info' filter was a silent no-op (#4899)

S37264dd7bd39
diff --git a/changelog.d/+logpanel-info-filter.bugfix.md b/changelog.d/+logpanel-info-filter.bugfix.md
new file mode 100644
index 0000000000..f8ec186d0d
--- /dev/null
+++ b/changelog.d/+logpanel-info-filter.bugfix.md
@@ -0,0 +1 @@
+Fix the 'Info' filter button in the Research Logs panel being a silent no-op. Clicking it left the panel showing every entry (warnings, errors, milestones) because the visibility helper returned true for all log types when the active filter was 'info'. The filter now narrows to info entries only, matching the button's label.
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.js
index 14689ca5ea..43b88f6180 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
@@ -24,7 +24,10 @@
case 'all':
return true;
case 'info':
- return logType === 'info' || logType === 'warning' || logType === 'milestone' || logType === 'error';
+ // 'info' must show ONLY info entries. The old implementation
+ // returned true for every type, which made the 'Info'
+ // filter button a no-op (clicking it did nothing visible).
+ return logType === 'info';
case 'milestone':
case 'milestones': // Handle plural form too
return logType === 'milestone';
diff --git a/tests/js/utils/log-helpers.test.js b/tests/js/utils/log-helpers.test.js
index f47a18c268..145d41aaeb 100644
--- a/tests/js/utils/log-helpers.test.js
+++ b/tests/js/utils/log-helpers.test.js
@@ -23,11 +23,15 @@ describe('checkLogVisibility', () => {
}
});
- it("filter 'info' shows info, milestone, warning, and error", () => {
+ it("filter 'info' only shows info entries (regression: was a no-op)", () => {
+ // The pre-fix implementation returned true for every type under
+ // the 'info' filter, which made clicking the Info filter button
+ // effectively a no-op. This test pins down the correct, narrow
+ // behaviour: only entries whose type is 'info' are visible.
expect(checkLogVisibility('info', 'info')).toBe(true);
- expect(checkLogVisibility('milestone', 'info')).toBe(true);
- expect(checkLogVisibility('warning', 'info')).toBe(true);
- expect(checkLogVisibility('error', 'info')).toBe(true);
+ expect(checkLogVisibility('milestone', 'info')).toBe(false);
+ expect(checkLogVisibility('warning', 'info')).toBe(false);
+ expect(checkLogVisibility('error', 'info')).toBe(false);
});
it("filter 'milestone' only shows milestones", () => {