Skip to content

No Delete Agent action when editing an agent #496

Description

@kristopolous

What happened?

When editing an existing agent (a named, mutable chat bound to an agent — the composer shows an "Update Agent" button top-right instead of "Save Agent"), there is no way to delete the agent from the chat UI itself. The registry already supports it (DELETE /api/v1/agents/{agent_id}, packages/trueforge/src/routes/agentRoutes.ts / apis/agents.ts), and the AgentBuilderServer port already has an optional deleteAgent?(req: { agentName: string }) hook (@truefoundry/assistant-ui-runtime) — but nothing in packages/trueforge-ui calls it, and there's no button.

Expected behavior

Next to "Update Agent" (top right, in SaveAgentButton), add a "Delete Agent" action to its left, visible only while editing an existing agent. Clicking it should show a confirmation (using the app's existing modal/button UX, not a native confirm()) before permanently deleting the agent.

How are you running TrueForge?

npx (standalone / SQLite)

Version

main

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions