<human>: I have 2 dogs & moved into a roommate housing situation 3 months ago.  Recently, my younger (2 yr old) Shihpoo has taken to sleeping with my roommates. If I take her to bed with me, she whines & scratches to be let out to go sleep with the roommate.  

Since this started I've been paying closer attention to the relationship dynamics between myself & both dogs & realized that my older dog (6 yr old terrier) has been displaying some odd behavior that may have something to do with this. 

When I am petting/playing with younger dog, the terrier will come over to cuddle & work his way between me & the shihpoo. I've stopped interacting with the terrier when he does this & he's losing that behavior. However, the shihpoo won't come sit with me if the terrier is sitting next to me.
My shihpoo seems to be bonding more & more to my roommate. Since I work from home, I spend all day with the dogs & give the shihpoo daily training, multiple play times, trips outside for the bathroom, and grooming. My roommate feeds both dogs food from his plate frequently. 

I don't mind the dog sleeping with my roommate - he lost his dog last year and I know he gets immense emotional fulfillment from having this dog so taken with him.  My concern is when we move out - how do I ensure the shihpoo is still bonded to me & feels comfortable with me & the terrier?

Give me a shortened version of the text
<bot>: Want to ensure 2nd dog stays bonded with me & 1st dog for when we move out. How do I do this?