Had a similar incident a few years ago.
I had hiked up into the little juniata gorge with a friend. All the way to the last pool before the home waters stretch.
And that's where I snagged a tree on the far side
But it was the line that broke.
It was old and had small nick in it, about one third up from the end- which I sealed with super glue.
It held for a good year or so, before finally breaking - way up there
I had a spare reel in the truck back at the Baree parking lot - at least 2 miles back down the trail
No way I was gonna hike down, and back up again though
But the fish were rising pretty good
So I tied a loop in the new end of the line, which was now about two thirds of it's original length.
Put the leader back on and kept fishing.