Skip to content

fix(agents): delete provider-backed instances without persona cascade - #3901

Open
Chessing234 wants to merge 2 commits into
block:mainfrom
Chessing234:fix/provider-agent-delete-routing
Open

fix(agents): delete provider-backed instances without persona cascade#3901
Chessing234 wants to merge 2 commits into
block:mainfrom
Chessing234:fix/provider-agent-delete-routing

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • Add helpers to detect provider-deployed managed agent instances.
  • Route Agents library card Delete to deleteManagedAgentWithRules when the primary linked instance is provider-deployed, instead of persona cascade deletion that fails with "delete those agent instances first".

Fixes #3771

Test plan

  • pnpm test -- src/features/agents/lib/managedAgentControlActions.test.mjs
  • Create a provider-backed agent, Delete from the Agents card menu, confirm instance deletion succeeds

Made with Cursor

Chessing234 and others added 2 commits July 31, 2026 13:43
Add helpers so delete flows can tell live remote deployments apart from
persona-only records before choosing instance vs persona deletion.

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Agents library Delete on a provider-backed instance now calls the managed
agent delete path instead of persona cascade deletion that the backend
refuses for live remote deployments.

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Chessing234
Chessing234 requested a review from a team as a code owner July 31, 2026 10:43
@Chessing234

Copy link
Copy Markdown
Contributor Author

@tlongwell-block @wesbillman @wpfleger96 mind taking a look when you get a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provider-backed agent delete is routed through persona deletion and fails

1 participant