fix(FN-1349): add resume/start button for terminated agents in AgentListModal

This commit is contained in:
gsxdsm
2026-04-09 10:12:58 -07:00
parent e14dc3664f
commit de0ffbaa7e

View File

@@ -584,13 +584,22 @@ export function AgentListModal({ isOpen, onClose, addToast, projectId }: AgentLi
</>
)}
{agent.state === "terminated" && (
<button
className="btn btn--sm btn--danger"
onClick={() => void handleDelete(agent.id, agent.name)}
title="Delete"
>
<Trash2 size={14} /> Delete
</button>
<>
<button
className="btn btn--sm btn--primary"
onClick={() => void handleStateChange(agent.id, "active")}
title="Start"
>
<Play size={14} /> Start
</button>
<button
className="btn btn--sm btn--danger"
onClick={() => void handleDelete(agent.id, agent.name)}
title="Delete"
>
<Trash2 size={14} /> Delete
</button>
</>
)}
</div>
</div>