From e1f427c9aab65dc6987ce74e8458b6d3f4448789 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Tue, 17 Mar 2026 16:35:10 +0800 Subject: [PATCH] fix: stop cleaning aerial wallpaper assets by default --- lib/clean/user.sh | 3 --- tests/clean_user_core.bats | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/clean/user.sh b/lib/clean/user.sh index 0763dc5..5b84f22 100644 --- a/lib/clean/user.sh +++ b/lib/clean/user.sh @@ -473,9 +473,6 @@ clean_support_app_data() { fi fi - # Clean old aerial wallpaper videos (can be large, safe to remove). - safe_clean ~/Library/Application\ Support/com.apple.wallpaper/aerials/videos/* "Aerial wallpaper videos" - # Do not touch Messages attachments, only preview/sticker caches. if pgrep -x "Messages" > /dev/null 2>&1; then echo -e " ${GRAY}${ICON_WARNING}${NC} Messages is running ยท preview cache cleanup skipped" diff --git a/tests/clean_user_core.bats b/tests/clean_user_core.bats index fa7ae29..5ad137d 100644 --- a/tests/clean_user_core.bats +++ b/tests/clean_user_core.bats @@ -118,7 +118,7 @@ EOF [[ "$output" == *"SPIN_START:Scanning app caches..."* ]] } -@test "clean_support_app_data targets crash, wallpaper, and messages preview caches only" { +@test "clean_support_app_data targets crash, idle assets, and messages preview caches only" { local support_home="$HOME/support-cache-home-1" run env HOME="$support_home" PROJECT_ROOT="$PROJECT_ROOT" bash --noprofile --norc <<'EOF' set -euo pipefail @@ -141,6 +141,7 @@ EOF [ "$status" -eq 0 ] [[ "$output" == *"FIND:$support_home/Library/Application Support/CrashReporter:30:f"* ]] [[ "$output" == *"FIND:$support_home/Library/Application Support/com.apple.idleassetsd:30:f"* ]] + [[ "$output" != *"Aerial wallpaper videos"* ]] [[ "$output" == *"Messages sticker cache"* ]] [[ "$output" == *"Messages preview attachment cache"* ]] [[ "$output" == *"Messages preview sticker cache"* ]]