feat(clean): add Zed, Warp, and Ghostty cache cleanup#694
Merged
Conversation
Extends clean_code_editors with Zed cache and logs, and clean_shell_utils with Warp and Ghostty caches/logs. Path-only, mirrors the Stremio/Helium pattern. Excludes user state (Zed db, Warp Application Support, configs). Verified against installed apps on macOS: Zed logs 2 items, 6KB Warp cache 2 items, 0B Warp Sentry crash reports 2 items, 4KB Ghostty cache 4KB
Owner
|
@sebastianbreguel thanks, the paths look safe and the test pattern is right. merging now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds cache and log cleanup for three popular modern dev tools, following the existing path-only pattern (Stremio #643, Helium, Sublime Text):
Visual preview
Verified on a real macOS system with all three apps installed:
When the apps are not installed, the lines are silently skipped.
What changed
lib/clean/app_caches.shsafe_cleanlines inclean_code_editors(Zed); 4 new lines inclean_shell_utils(Warp + Ghostty)tests/clean_app_caches.batsSafety Review
mo cleannow removes 6 additional cache/log paths owned by Zed, Warp, and Ghostty. All are pure cache or Sentry crash directories.safe_clean. No new paths under user-owned data dirs.~/Library/Application Support/Zed/db/(workspace state, conversation history)~/Library/Group Containers/2BBY89MBSN.dev.warp/(Warp AI history, sqlite)~/Library/Application Support/com.mitchellh.ghostty/(config)~/.config/zed/,~/.config/ghostty/,~/.warp/(configs)Test plan
bats tests/clean_app_caches.bats— 17/17 pass (2 new + 15 existing)./mo clean --dry-runand confirmed all 4 lines appear with non-zero entries (output above)Safety-related changes