• v6.2.9 810b75647c

    dpsifr released this 2025-12-04 20:22:41 +01:00 | 501 commits to main since this release

    Critical Bug Fixes

    This release fixes two critical VFS bugs that caused directory listing corruption, reported by the Soulcraft Workshop team.

    Bug 1: verbCountsByType Optimization Skipping Requested Types

    • Symptom: vfs.readdir('/') returned empty or incomplete results after app restart
    • Root Cause: getVerbs() optimization skipped verb types with count 0, but statistics were stale after restart
    • Fix: Never skip verb types explicitly requested in the filter; added fast path for sourceId + verbType combo

    Bug 2: UnifiedCache Not Invalidated on Path Deletion

    • Symptom: "Source entity not found" errors when recreating deleted folders
    • Root Cause: invalidatePath() cleared local caches but NOT the global UnifiedCache
    • Fix: Added deleteByPrefix() to UnifiedCache; fixed invalidatePath() to clear all cache layers

    Files Changed

    • src/storage/baseStorage.ts - verbCountsByType fix + fast path
    • src/utils/unifiedCache.ts - deleteByPrefix method
    • src/vfs/PathResolver.ts - cache invalidation fix

    Tests Added

    • 7 new unit tests covering both bugs and edge cases
    • Delete/recreate cycle tests verified working

    Full Changelog: https://github.com/soulcraftlabs/brainy/compare/v6.2.8...v6.2.9

    Downloads