What is more idiomatic to my ear is I didn't know you had a girlfriend. After knew, didn't know, thought, didn't think , you can't go wrong if you use the past. In fact, the present usually sounds wrong.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.