From b1d715f799e972abd74ff1a199c6cf41c0be639e Mon Sep 17 00:00:00 2001 From: cschantz Date: Tue, 16 Dec 2025 20:22:41 -0500 Subject: [PATCH] Reset system detection cache after cleanup After clearing toolkit data, the detection cache needs to be reset so the launcher will re-detect system info on next menu display. Changes: - Unset SYS_DETECTION_COMPLETE flag - Unset all SYS_* environment variables - Show user that cache was cleared Fixes issue where cleanup wouldn't trigger re-detection --- modules/maintenance/cleanup-toolkit-data.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/maintenance/cleanup-toolkit-data.sh b/modules/maintenance/cleanup-toolkit-data.sh index 25272ab..49576e4 100755 --- a/modules/maintenance/cleanup-toolkit-data.sh +++ b/modules/maintenance/cleanup-toolkit-data.sh @@ -240,4 +240,13 @@ if [ "${missing:-0}" -gt 0 ]; then fi echo "" + +# Reset system detection cache so it re-detects on next menu display +unset SYS_DETECTION_COMPLETE +for var in $(compgen -e | grep "^SYS_"); do + unset "$var" +done +echo -e "${CYAN}[INFO]${NC} System detection cache cleared - will re-detect on next menu" +echo "" + press_enter