Uh oh!
There was an error while loading. Please reload this page.
feat(ui): add agent deletion controls - #430
Conversation
🦋 Changeset detectedLatest commit: 44c4a65 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 041b993. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
kumarsks619
left a comment
There was a problem hiding this comment.
@jayesh9747 please add relevant screenshots/screen-recording

Summary
Closes#429
Changes
deleteAgent.DELETE /api/v1/agents/{agent_id}SDK routes.deleteAgentwhen no callback is provided.How was this tested?
pnpm test:trueforge-ui— 130 test files / 847 tests passed, including package build and export smoke tests.pnpm --filter @truefoundry/trueforge-ui typecheckpnpm --filter @truefoundry/trueforge-ui lintpnpm format:checkChecklist
Note
Medium Risk
Deletes are destructive and touch shell navigation state after removal; behavior is gated on optional server support and covered by tests, but wrong adapter logic could remove the wrong backend resource.
Overview
Adds agent deletion to the Agents Library when the host server exposes
deleteAgent: a trash action per row, a confirmation dialog, success/error feedback, and a list refresh viainvalidateAgentsList. After a successful delete, the UI clears a matching history filter and navigates away if the deleted agent was active (draft or library home depending on composer mode).createTrueFoundryServerno longer installs a stub that throws whendeleteAgentis omitted—it only attaches the method when a callback is provided, matching custom-server behavior where missing optional ports hide controls instead of failing at runtime.The bundled TrueForge builder adapter implements
deleteAgentby resolving the agent id from the list API and callingDELETE /api/v1/agents/{id}(no-op if the name is already gone). Docs and the BYO checklist now state thatdeleteAgentis invoked from the library when present.Reviewed by Cursor Bugbot for commit 44c4a65. Bugbot is set up for automated code reviews on this repo. Configure here.