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

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

View File

@@ -342,10 +342,16 @@ export function AgentDetailView({ agentId, projectId, onClose, addToast, onChild
</>
)}
{agent.state === "terminated" && (
<button className="btn btn--danger" onClick={handleDelete}>
<Trash2 size={16} />
Delete
</button>
<>
<button className="btn btn--primary" onClick={() => void handleStateChange("active")}>
<Play size={16} />
Start
</button>
<button className="btn btn--danger" onClick={handleDelete}>
<Trash2 size={16} />
Delete
</button>
</>
)}
<button className="btn-icon" onClick={() => void loadAgent()} title="Refresh">