Skip to content

Retry model removal and explain it when macOS reports "current locks" #56

Closed

Description

@omlahore

When something on the Mac still has a model set open, Apple's asset service refuses the removal with Could not eliminate as there are current locks. RemoveMacAI prints that raw error, and the app ends with "Finished with problems". A few people have hit this (#15, #38), and so far a restart followed by applying again has cleared it every time.

What would help:

  • detect the lock error in Models.remove (Sources/removemacai/System.swift) instead of printing the whole userInfo
  • try the removal again a couple of times after a short wait
  • if it still fails, tell the person in plain words that something is using the models and that restarting and applying again clears it, in both the CLI and the app

The self-test can cover the message with a fake remove, the same way Commands.removeModels already takes one.

Activity

  1. added
    enhancement
    help wanted
    on Oct 16, 2026
  2. added a commit that references this issue on Oct 18, 2026
    f122452
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions