Local, full Windows search replacement, clipboard manager, and launcher: files, apps, settings and semantic media search with Google's EmbeddingGemma 2.
Rust clipboard-historyembedding-modelsembeddinggemma-2embeddinggemma2embeddingslocal-firstmcp-serversearchsemantic-searchwindows-11
Continue indexing accessible network siblings after child errors; beta 4
ampersandru2fb196dff6c5
diff --git a/Build-Rust.ps1 b/Build-Rust.ps1index bd678b4..e3e1448 100644--- a/Build-Rust.ps1+++ b/Build-Rust.ps1@@ -82,8 +82,8 @@ if (Test-Path $taskPortable) { throw 'Portable staging directory already exists.New-Item -ItemType Directory -Force $taskPortable | Out-NullGet-ChildItem -LiteralPath $taskBundle | Copy-Item -Destination $taskPortable -Recurse -ForceSet-Content -LiteralPath (Join-Path $taskPortable 'portable.flag') -Value '' -Encoding ascii-Compress-Archive -Path (Join-Path $taskPortable '*') -DestinationPath 'dist/installer/VectorDash-Rust-0.3.25-beta.3-x64.zip' -Force-$taskInstaller='dist/installer/VectorDash-Beta-Setup-0.3.25-beta.3-x64.exe'-$taskZip='dist/installer/VectorDash-Rust-0.3.25-beta.3-x64.zip'+Compress-Archive -Path (Join-Path $taskPortable '*') -DestinationPath 'dist/installer/VectorDash-Rust-0.3.25-beta.4-x64.zip' -Force+$taskInstaller='dist/installer/VectorDash-Beta-Setup-0.3.25-beta.4-x64.exe'+$taskZip='dist/installer/VectorDash-Rust-0.3.25-beta.4-x64.zip'@($taskInstaller,$taskZip) | ForEach-Object {((Get-FileHash -LiteralPath $_ -Algorithm SHA256).Hash.ToLowerInvariant()+' '+(Split-Path $_ -Leaf))} | Set-Content 'dist/installer/RUST-SHA256SUMS.txt' -Encoding asciiWrite-Output "Native installer and portable ZIP ready."diff --git a/native/Cargo.lock b/native/Cargo.lockindex c9f09e3..1bee4b3 100644--- a/native/Cargo.lock+++ b/native/Cargo.lock@@ -5716,7 +5716,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"[[package]]name = "vectordash"-version = "0.3.25-beta.3"+version = "0.3.25-beta.4"dependencies = ["anyhow","arboard",diff --git a/native/Cargo.toml b/native/Cargo.tomlindex 489bb23..dd9b553 100644--- a/native/Cargo.toml+++ b/native/Cargo.toml@@ -1,6 +1,6 @@[package]name = "vectordash"-version = "0.3.25-beta.3"+version = "0.3.25-beta.4"edition = "2024"license = "MIT"[dependencies]diff --git a/native/docs/0.3.25-beta.4.md b/native/docs/0.3.25-beta.4.mdnew file mode 100644index 0000000..b84edc8--- /dev/null+++ b/native/docs/0.3.25-beta.4.md@@ -0,0 +1,9 @@+# VectorDash 0.3.25 Beta 4 — Network share indexing fix++- Fixed a network subfolder enumeration or metadata error stopping the entire source scan. Accessible sibling folders and files now continue indexing. This applies to counting and both Quick and Full scans.+- A whole-source early stop now requires a network error plus a failed root-directory enumeration probe. Existing records are retained when a source or subtree is inaccessible.+- This addresses a reproduced mapped SMB drive failure where one subfolder returned Windows network error 59. No source exclusions or index rebuild are required; run **Update index** after installing to discover previously missed files.++Includes all Beta 3 search/playback fixes. Windows 10 support remains beta. Localization is being developed separately in PR #17 and is not included in this build.++Validation: 163 automated tests passed (10 existing opt-in tests not run), four packaging regressions passed, and the packaged executable was tested against the actual failing SMB subtree in isolated profiles. Beta 3 indexed 0 files and missed the sibling-file search; Beta 4 counted/indexed 1,255 files in 0.74 seconds, skipped four inaccessible paths and found the expected sibling file. This is a targeted regression check, not a general network throughput benchmark.diff --git a/native/docs/BENCHMARKS.md b/native/docs/BENCHMARKS.mdindex 71e8416..cdcf705 100644--- a/native/docs/BENCHMARKS.md+++ b/native/docs/BENCHMARKS.md@@ -131,3 +131,7 @@ The final candidate also recorded 0.0% process CPU in three consecutive four-secMain/popup checks covered independent grid/list widths and persistence, real H.264 frame thumbnails, and constrained Filter panels. With saved divider ratios of 0.75 for lists and 0.40 for grids, preview widths were 222 and 532.8 points respectively, with both saved values retained. The compact Filter case stayed within a 940×500 viewport (panel bounds 598,101 to 932,492) and returned to height 194 on close. File type options now open from the input bar, with enough menu height for all eight choices.Video thumbnails use one frame on demand in the existing two-worker, eight-slot queue. The RAM-only texture cache holds at most 96 thumbnails with maximum side 128 pixels, or at most 6 MiB RGBA pixel payload; codec and GPU allocation overhead are additional. No persistent thumbnail cache is created. Unsupported decoding falls back to the file icon.++## Beta 4: inaccessible network subfolder regression++The same read-only NAS subtree was Quick-indexed into isolated profiles using the packaged Beta 3 and Beta 4 executables, with counting enabled. A child directory returned Windows SMB error 59 while the root and sibling directories remained readable. Beta 3 stopped at that child: 0 files counted/indexed and no match for a known sibling file. Beta 4 counted/indexed 1,255 files, skipped four inaccessible paths, and returned the expected sibling search result in a 0.74-second scan. No changes were made to the share or the active application index. Timing is specific to this small, warm-cache subtree and does not establish general NAS throughput. Unit coverage additionally verifies that a genuinely unavailable source retains its existing names and that the network error codes only circuit-break an unreadable root.diff --git a/native/src/engine.rs b/native/src/engine.rsindex e7a4c8a..6d2b25e 100644--- a/native/src/engine.rs+++ b/native/src/engine.rs@@ -830,10 +830,7 @@ impl Engine {"Warning",format!("Counting skipped an inaccessible path: {e}"),);- if e.io_error()- .and_then(|e| e.raw_os_error())- .is_some_and(|n| [53, 59, 64, 67, 121, 1231, 1232].contains(&n))- {+ if network_source_unavailable(&root, e.io_error()) {self.log("Warning","Network source unavailable; stopping its count early",@@ -930,11 +927,8 @@ impl Engine {self.log("Warning", format!("Skipped inaccessible path: {e}"));progress.skipped += 1;source_failed = true;- if e.io_error()- .and_then(|x| x.raw_os_error())- .is_some_and(|n| [53, 59, 64, 67, 121, 1231, 1232].contains(&n))- {- self.log("Warning","Network source failed; skipping remaining paths and retaining existing records");+ if network_source_unavailable(&root, e.io_error()) {+ self.log("Warning","Network source root is unavailable; skipping remaining paths and retaining existing records");break;}continue;@@ -950,10 +944,7 @@ impl Engine {self.log("Warning", format!("Metadata failed: {e}"));progress.skipped += 1;source_failed = true;- if e.io_error()- .and_then(|e| e.raw_os_error())- .is_some_and(|n| [53, 59, 64, 67, 121, 1231, 1232].contains(&n))- {+ if network_source_unavailable(&root, e.io_error()) {break;}continue;@@ -2294,6 +2285,38 @@ fn content_stamp(raw: &str, ext: &str) -> Option<String> {}Some(stamp)}+/// A child may fail with a network error even though its SMB share is healthy+/// (for example a NAS directory that cannot be enumerated). Only circuit-break+/// the whole source after confirming the root itself is no longer readable.+fn network_source_unavailable(root: &Path, error: Option<&std::io::Error>) -> bool {+ let Some(error) = error else {+ return false;+ };+ #[cfg(windows)]+ let network_error = error+ .raw_os_error()+ .is_some_and(|n| [53, 59, 64, 67, 121, 1231, 1232].contains(&n));+ #[cfg(not(windows))]+ let network_error = matches!(+ error.kind(),+ std::io::ErrorKind::NetworkDown+ | std::io::ErrorKind::NetworkUnreachable+ | std::io::ErrorKind::HostUnreachable+ | std::io::ErrorKind::ConnectionReset+ | std::io::ErrorKind::ConnectionAborted+ | std::io::ErrorKind::TimedOut+ | std::io::ErrorKind::NotConnected+ );+ if !network_error {+ return false;+ }+ // Opening and reading the first entry verifies enumeration, rather than+ // trusting cached metadata/exists() after a share disconnects.+ std::fs::read_dir(root)+ .and_then(|mut entries| entries.next().transpose().map(|_| ()))+ .is_err()+}+fn walker<'a>(root: &Path,s: &'a Settings,@@ -2930,6 +2953,47 @@ mod scan_lifecycle_tests {*engine.control.schedule.lock().unwrap() = settings.clone();engine}+ #[test]+ fn inaccessible_network_child_does_not_abort_readable_source() {+ let source = tempfile::tempdir().unwrap();+ std::fs::write(source.path().join("healthy-sibling.txt"), "sibling").unwrap();+ #[cfg(windows)]+ let errors = [53, 59, 64, 67, 121, 1231, 1232]+ .into_iter()+ .map(std::io::Error::from_raw_os_error)+ .collect::<Vec<_>>();+ #[cfg(not(windows))]+ let errors = vec![std::io::Error::from(std::io::ErrorKind::NetworkUnreachable)];+ for error in errors {+ assert!(!network_source_unavailable(source.path(), Some(&error)));+ assert!(network_source_unavailable(+ &source.path().join("offline-source"),+ Some(&error)+ ));+ }+ assert!(!network_source_unavailable(source.path(), None));+ assert!(!network_source_unavailable(+ source.path(),+ Some(&std::io::Error::from(std::io::ErrorKind::PermissionDenied))+ ));+ }+ #[test]+ fn unavailable_source_retains_previously_indexed_names() {+ let home = tempfile::tempdir().unwrap();+ let source = tempfile::tempdir().unwrap();+ let root = source.path().join("share");+ std::fs::create_dir(&root).unwrap();+ let file = root.join("keep-indexed.txt");+ std::fs::write(&file, "keep").unwrap();+ let s = settings(&root, false);+ let engine = fixture(home.path(), &s);+ engine.index_inner(&s, false).unwrap();+ let before = engine.db.stats().unwrap().files;+ assert!(before > 0);+ std::fs::rename(&root, source.path().join("offline")).unwrap();+ engine.index_inner(&s, false).unwrap();+ assert_eq!(engine.db.stats().unwrap().files, before);+ }fn settings(path: &Path, watch: bool) -> Settings {let mut s = Settings::default();s.encrypt_index = false;diff --git a/packaging/VectorDash-Rust.iss b/packaging/VectorDash-Rust.issindex bfc9444..4ba43df 100644--- a/packaging/VectorDash-Rust.iss+++ b/packaging/VectorDash-Rust.iss@@ -3,7 +3,7 @@ AppId={{C6AC1B4D-A119-4D73-B2C8-6C507DEFE923}AppName=VectorDashAppVerName=VectorDashUninstallDisplayName=VectorDash-AppVersion=0.3.25-beta.3+AppVersion=0.3.25-beta.4VersionInfoVersion=0.3.25.0AppPublisher=VectorDash contributorsAppPublisherURL=https://github.com/ampersandru/VectorDash@@ -14,7 +14,7 @@ ArchitecturesAllowed=x64compatibleArchitecturesInstallIn64BitMode=x64compatibleMinVersion=10.0.19041OutputDir=..\dist\installer-OutputBaseFilename=VectorDash-Beta-Setup-0.3.25-beta.3-x64+OutputBaseFilename=VectorDash-Beta-Setup-0.3.25-beta.4-x64SetupIconFile=VectorDash.icoUninstallDisplayIcon={app}\VectorDash.exeLicenseFile=..\LICENSE