In all honesty, I've never really had an issue with that exchange, because Foreman is making fun of Chase just as much as Chase is him: if Chase had said it out of nowhere, yeah, calm down, but Chase is acting defensively â Foreman has just accused him of having a crush on Cameron, which, lol. It's⌠a rude thing to say, and it's meant to be rude, but Foreman makes fun of him back and the tone of the scene is them needling one another mutually, not actually being or trying to be offensive.
The two of them interact fairly neutrally like this in early S1: Foreman actually tries to reach out a couple of times sympathetically (Chase gets upset in Socratic Method and lashes out a bit; Foreman recognizes that he's not being an ass for fun but because he also has Experiences With Alcoholism), and they joke around a bit. I wouldn't exactly call them "best friends" (Chase snarks in Histories that Foreman doesn't like him), but they're fairly neutral. It isn't really until Vogler/Control that things seem to sour between them: Foreman comes on strong saying Chase should be fired for his screw up, even though Chase is clearly worried/guilty about it, and later tells House that Chase should be fired because he doesn't deserve the job. They continue to butt heads through the arc, not to say that Chase doesn't "deserve" it for being a rat, or that Foreman's dislike isn't justified.
In S2, things seem to have settled down, although by S3 there picks up a running theme of Foreman⌠let's call it "picking on" Chase: he accuses Chase of screw ups or making mistakes in several episodes, even though Chase never actually does, and spends for example Cane and Able repeatedly insisting Chase is screwing up left and right, and then in Finding Judas Foreman is actually pretty unkind â Cameron briefly joins in â and once again returns to his theme of "Chase is useless and doesn't deserve this job." We also lose any hint of them reaching out to one another or being curious: Chase is notably apathetic in Euphoria, and is much more annoyed Foreman stabbed Cameron than worried about Foreman, and Foreman has decided on his feelings about Chase and doesn't question them (that Chase is incompetent and doesn't really deserve the job) further, although they get along on a neutral level most of the time.
End of S3, there's still more: Foreman gets annoyed and suspicious when Chase does reach out to him in Family (or get nosy, as in Resignation), and has zero reaction to his firing. Chase continues to be snarky back â again, it isn't that Chase is a nicer person who rises about it; he's just more passive-aggressive and conflict-avoidant â but by S4⌠Foreman's at it again, this time assuming Chase is jealous of and resents him for being back in Diagnostics, based on⌠vibes? Assumptions? â a trait Chase happily returns by picking on him and trolling him repeatedly. And then by S6, Chase more or less threatens him into helping with Dibala (pushing more and more responsibility onto Foreman while trying to cover his own ass), and is pretty dismissive and cold when Foreman does try to reach out to him â although admittedly, Foreman's "I just broke up with Thirteen, breaking up sucks," to a post-divorce Chase is a pretty weak attempt at commiseration, lol.
It's also telling how little either of them take in one another's lives: Foreman is so disinterested in Chase's relationship with Cameron it basically is a running joke, but also tells Thirteen he's pretty sure Chase is going to cheat on her, and back in S3 Chase is genuinely offended Foreman thinks he'd hurt her: these are not massive conflicts, but go towards Foreman's perception of Chase really being very consistently cynical. Chase for his part actually reaches out a little more, if only to troll/tease, but meddles a bit in Foreman's family life in S3: I think this probably is just as telling of Chase's own family issues as anything else.
But then by S7, as I mentioned in this post, Chase actually does lose his patience, by addressing specifically these problems Foreman has had since Control: He thinks Chase isn't entirely competent, that he deserves the job more than Chase, that Chase is sleazy and selfish and a bit dim. And the thing is: Chase is, at times, all those things (except for incompetent). He has good traits too, but Foreman doesn't see or care about them: this is pretty consistent for Foreman, who is stubborn and not always a great judge of character, but it really does seem to all go back to late S1 and Control.