1 Commits
Author SHA1 Message Date
leoca cc936823df fix(cli): use canonical CACHE_FILES and remove_files for cache invalidation
The standalone CLI (aircard.py) defined its own CACHE_FILES = ["FrontFace",
"Preview"], missing the "PlaceHolder" entry present in card_assets.CACHE_FILES.
Skipping PlaceHolder left stale rendered card artwork visible after a skin
change on recent iOS versions.

Additionally, the CLI still overwrote cache entries with b"corrupted" bytes
instead of unlinking them via invalidate_cache / remove_files, an approach
that was fixed in aircard_backend.py (commit 7e8979b) but never propagated
to the standalone CLI path.

Import CACHE_FILES from card_assets (the canonical source) and delegate
cache invalidation to apply_card_skin.invalidate_cache, which already
handles both .cache and .pkcache directories with proper unlink semantics.
2026-09-22 22:20:05 +00:00