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:
@@ -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.
|
||||
|
||||

|
||||
|
||||
## Built-In Agent Prompt Templates
|
||||
|
||||
Reference in New Issue
Block a user