Complex sentence: They agreed not to mention it again or tell Andy but Jo saw them and assumed they were having an affair.
Split into simpler sentences: They agreed not to mention it again or tell Andy. Jo, however, assumed they were having an affair.