If an AI agent becomes just massively useful, and then a judge says that it's impossible to run it profitably with the current interpretation of copyright law, the agents won't go away: Copyright will change to make the agents legal.
It really wasn't very different with copyright's evolution as the web developed: There are theoretical copyright regimes that are much harder than what we have, but basically kill the legal internet. But the damage to existing internet services was just unacceptable, including to users.