You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: honour track readiness in the picker, scope cache invalidation
- page.tsx: /api/tracks returns per-track `ready` and a top-level `default`,
but mapApiTracks dropped both — so nothing was preselected and a track whose
Moss index is not loaded stayed selectable, failing later at /health. Both
fields are carried through now: selection keeps a still-valid choice, else
adopts the backend default, else the first ready track; unready tracks are
disabled and labelled. A track without `ready` is treated as usable so an
older backend does not grey out everything.
- moss-vscode: the finally added in e733c8f cleared the persisted cache on any
non-ready outcome, including a failure *before* rebuild() deleted anything
(session setup, workspace scan) — where the previous documents are still
intact and dropping the cache just forces a needless full re-index. The
indexer now exposes hasDiscardedPreviousIndex(), set when deletion begins and
reset on a ready finish, and the caller gates on it.
- tracks.py: "optimising" -> "optimizing", matching US spelling elsewhere.
Verified: track selection over 7 shapes (default unready, none ready, current
gone unready, legacy backend without the field); and cache invalidation across
fail-before-deletion, fail-after-deletion, cancelled and successful runs — only
the first is now preserved.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments