Lane Sharing Etiquette Question - am I wrong?

For context, I’m getting back into swimming but going long distances, not swimming fast but steady & in years past I’ve been fortunate to never really need to lane share.

I’m 1,000yds into my swim when I see legs dangling in - a lady said she was going to share the lane, I said, “sure, yeah, no problem”. Then I turned and I kept going, just staying to one side of the lane rather than circling. 3-4 laps later she’s still sitting on the edge. When she finally got in, she’s swimming so slow (literally doggy paddling) that she’s almost not moving, then would stop for minutes after every length.

Not wanting to mess up my own workout on the way to my goal of 3,000yds, I swam up behind and passed her multiple times. Am I wrong for doing this and/or wrong for being aggravated by it? Should the etiquette be that if you’re swimming that slow and mostly just standing in the lane that you should move and let the person actively swimming have the lane?

Edit to clarify: we kept on the same side of lane, when I say “pass”, I meant “squeeze through” on times we were swimming in same direction.