Originally created by: adityaharishch
Summary
meridian uninstall --remove-data/--purge (and the in-app "Uninstall Meridian…" wizard's "Meridian data" checkbox, which shells out to the same code) now also removes the OS-managed WebKit/AppKit caches macOS creates for the tray's bundle id (com.meridiona.tray) — Application Support, Caches, WebKit, Saved Application State, HTTPStorages. None of these live under ~/.meridian or the app bundle, so they previously survived every uninstall path.
- Also does a best-effort
tccutil reset of the Accessibility / Screen Recording / Input Monitoring grants when data is removed, mirroring the existing pattern used for the retired a11y-helper agent.
- Updated the CLI's trailing message to reflect that permissions are now attempted automatically rather than claiming they're never touched.
Dragging Meridian.app straight to the Trash still can't be intercepted (no macOS API notifies an app of that — confirmed via research into how Docker Desktop/Slack/etc. handle this), so "Uninstall Meridian…" (CLI or in-app wizard) remains the one true full-cleanup path — this PR makes that path actually complete.
Test plan
- [x]
cargo test uninstall — 8/8 passing, including a new test asserting the app-cache paths are picked up only when present
- [x]
cargo clippy --tests -- -D warnings — clean
- [x]
cargo fmt --check — clean
- [x] Full pre-push hook suite (fmt, clippy, ui build, ui tests, security audit, cargo test) passed on push
Originally posted by: coderabbitai[bot]
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests - [ ] Commit unit tests in branch `fix/uninstall-app-caches-and-tcc`Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)Comment
@coderabbitai helpto get the list of available commands.