That compersion thing is a great goal but starting out I'd focus on survival.
Mourning the loss can be a big deal in itself. Your marriage and dynamic is changing and will continue to with addition of different people, time and attention all things to get use to.
Happy for her that she got in on with another guy but came home to you might be difficult under lab conditions....unless your into that. I just avoided contact in those situations.