feat(FN-2320): add settings-tab agent deletion controls

- Add a Danger Zone section in AgentDetailView settings with a Delete Agent action
- Reuse the existing delete confirmation/handler flow and gate deletion to idle or terminated agent states
- Add UI styling for danger sections and deletion guidance text in settings
- Expand AgentDetailView tests to cover enabled/disabled states plus confirm/cancel deletion paths
- Document settings-tab deletion behavior and constraints in docs/agents.md
This commit is contained in:
Fusion
2026-04-24 04:42:05 -07:00
committed by gsxdsm
parent b8d821de5a
commit e6ee31108b
4 changed files with 156 additions and 1 deletions

View File

@@ -92,6 +92,15 @@ The agents surface provides:
- Run history
- Task assignment context
### Agent Deletion Controls
Agent deletion is available from both the detail header lifecycle controls and the **Settings** tab's danger zone.
- The Settings-tab delete button reuses the same delete flow as the header action.
- Deletion still requires confirmation before calling `DELETE /api/agents/:id`.
- On successful deletion, the dashboard shows a success toast and closes the detail view.
- Deletion availability is intentionally restricted to agents in `idle` or `terminated` state.
![Agents view](./screenshots/agents-view.png)
## Built-In Agent Prompt Templates