qconnect: allow offline-cache to be cast (one consistent rule)

Three sites disagreed: model blocked OfflineCache, live gate allowed it, TS
sync filter blocked qobuz_download. Decision: ALLOW — an offline copy's queue
id is the real Qobuz track id. Flip the TS sync filter and fix the stale model
doc comment to match the live gate.

Also add Rust lock-in tests (offline_cache_is_castable / offline_cache_is_admitted)
and restore the missing $app/environment vitest mock the config already aliases,
so queuePlaybackService.test.ts can load.

cc
This commit is contained in:
vicrodh committed 2026-06-01 01:52:22 -06:00
1 parent 499b77879d
commit a16d6d0c81
5 files changed
+47 -7

No files matched your search

+5
View File
@@ -82,4 +82,9 @@ mod tests {
);
}
}
#[test]
fn offline_cache_is_admitted() {
assert!(evaluate_remote_queue_admission(TrackOrigin::QobuzOfflineCache).accepted);
}
}