That would be the Torchwood episode “Cyberwoman”. Very bad.
I didn’t buy how Ianto was so lovestruck over his Cyberwoman girlfriend, then a few episodes later became Capt. Jack’s gay lover.
That’s Torchwoods biggest problem, everyone in the damned show just about, even one time bit players, are as often as not homosexual or bisexual. Too much propoganda and it harms the show.
The potential for greatness is in the show, sadly it rarely executes at that level. Every once in a while it does, but most of the time it falls short.