Mole icon indicating copy to clipboard operation
Mole copied to clipboard

[BUG] `mole clean` deletes Aldente helper tool

Open zakhusayn opened this issue 7 months ago • 1 comments

Describe the bug

A clear and concise description of what the bug is. We suggest using English for better global understanding.

If you believe the issue may allow unsafe deletion, path validation bypass, privilege boundary bypass, or release/install integrity issues, do not file a public bug report. Report it privately using the contact details in SECURITY.md.

Steps to reproduce

  1. Run command: mo ...
  2. ...
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Debug logs

Please run the command with --debug flag and paste the output here:

mo <command> --debug
# Example: mo clean --debug
Debug output
Paste the debug output here

Environment

Please run mo update to ensure you are on the latest version, then paste the output of mo --version below:

Paste mo --version output here

Additional context

Add any other context about the problem here, such as screenshots or related issues.

zakhusayn avatar Apr 16 '26 04:04 zakhusayn

Fixed in #754.

Root cause: mo clean orphan detection could treat helper-suffixed IDs (for example com.apphousekitchen.aldente-pro.helper) as orphaned even when the parent app bundle ID is installed.

PR #754 updates bundle_has_installed_app to also resolve parent IDs for .helper/.daemon/.agent/.xpc suffixes and adds regression tests.

Please try the branch and confirm:

mo clean --dry-run --debug

and check that the AlDente helper is no longer listed for removal.

yetval avatar Apr 16 '26 06:04 yetval