mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
The desktop worker kept a second analytics result cache in the same cacheDir/query directory but invalidated it with a fragile scheme: app-version .cache_version file, a dev-startup wipe, and explicit invalidateAnalysisCache() calls after import. Replace it with the shared getOrComputeAnalysisCache, fingerprinting entries by product version plus the session DB file state, so the worker (still used by AI tools and the desktop public REST API) and the shared HTTP routes share one cache and one invalidation model. Fold the product version into the HTTP-route fingerprint too, preserving the cross-release invalidation that .cache_version used to provide, and drop the now-dead invalidation code. Co-authored-by: Cursor <cursoragent@cursor.com>