Fix inability to remove approved marketplace submissions

Significant-Gravitas/AutoGPT·May 13, 2026·✅ Merged

Approved marketplace submissions could not be removed — backend blocked deletion and frontend hid the delete action for approved items.

Approved marketplace submissions in AutoGPT's Creator Dashboard could not be removed — the backend explicitly blocked deletion for approved submissions, and the frontend hid the delete action for approved items entirely. This prevented creators from removing their agents from the marketplace after approval, creating a frustrating experience where a submission was effectively stuck once approved.

This PR enabled creators to remove approved marketplace submissions from both the Creator Dashboard and Profile Dashboard. Backend changes removed the InvalidOperationError restriction for approved submissions and added cleanup logic for StoreListing state — disconnecting activeVersion when necessary, updating hasApprovedVersion correctly, and falling back to another approved version if available. Frontend changes introduced a separate canDelete condition independent from canModify, allowing approved submissions to expose a dedicated 'Remove from marketplace' action while preserving the existing 'Delete' behavior for pending submissions. Tests were updated to validate the new approved removal flow. The changes spanned 6 files with 110 additions and 21 deletions across both backend (Python) and frontend (TypeScript).

GitHub
LinkedIn
LeetCode