#1234·tolaria

Saved views drop archived notes before filters run, so an archived condition never matches

Author: petervinesCreated Sep 17, 2026Updated Sep 17, 2026

What happens. archived is a built-in view filter field (src/utils/viewFilters.ts:19), but evaluateView removes archived notes before it evaluates the filter tree (src/utils/viewFilters.ts:26). A view that filters on archived equals true is always empty. The Rust evaluate_view (src-tauri/src/vault/views.rs:257) doesn't exclude archived notes first, so the app and the backend return different results for the same view.

Why it matters. Archiving finished notes keeps type lists clean, but then there is no way to build a view like "finished this week" or "resolved this month".

Suggested fix. Keep hiding archived notes by default. When a view's filters mention archived, evaluate them as written, or support an explicit includeArchived: true.

name: Finished this week filters: all: - { field: type, op: equals, value: plan } - { field: archived, op: equals, value: true } - { field: completed, op: after, value: one week ago }