mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
Split !impact.canDelete into two separate guards: a static blocker check (managed_local, instance_default) that always rejects, and a runtime use check that only rejects without force=true. On a forced delete that has an active custom image session, cancel the session first; if cancellation leaves the session in a non-terminal state (starting, waiting_for_user, capturing), return 409 instead of deleting the row. Then release active leases before removing the environment. Co-Authored-By: Paperclip <noreply@paperclip.ing>