There's no doubt that the taxi driver is a nutter for overtaking there.
It does seem to be a common theme with drivers; there are a number on the roads that feel they
have to get past you if the road is wide enough for them to fit past you, whether it's by undertaking or overtaking. To be honest I don't really have a better approach than trying to guess when you've got one of them behind you and slow down and pull over to let them pass, even if it means stopping.
It's only slightly further down from there I had a bus driver who was right behind me and revving his engine so it was clear he was going to overtake regardless of the fact that was only physically just enough room for him to get past without clipping me or the oncoming traffic, even if I cycled directly next to the parked cars - there was a clear "you move out the way or I'm going to hit you" game of chicken going on. (I did report him to the police, but apparently I didn't do it quite right so would have to report it again and then go in for an interview, and by the time they told me that sufficient time had passed that it didn't seem quite worthwhile.)
As you might remember, my approach is just to avoid that roundabout
