fix(agents): drop the persisted state when the agent is removed
fix(agents): drop the persisted state when the agent is removed: a task in github-trending-environments-10k (Harbor dataset). Title: fix(agents): drop the persisted state when the agent is removed
The task
**Title:** fix(agents): drop the persisted state when the agent is removed