The Assign Ticket to the First Responder default workflow automator under Admin > Automation & Productivity > Automation > Workflow Automator ensures that the most recent responding agent is automatically assigned to the ticket.

Automatically assign a ticket to the last responding agent.