Long story short... as part of working of Teams, we made a number of UI and layout changes that were shown to Teams users but not anyone else. At the same time, the design team has been working on updating and streamlining our site layouts. Along the way, the styles that were done for Stack Overflow (and Teams) became a base for the "unified" design we're in the process of testing and rolling out network-wide.
So, a check that used to be "if current user sees Teams" became "if current user sees Teams OR unified theme is enabled". Fine, no problem. Except that further down, we also have a site setting check that decides whether to show those blue links or regular tabs. That check now also needs to only apply to Teams users, and that bit was missing.
I wrangled boolean logic back in place, so we shouldn't be doubling on the display.