Others, such as Reince Priebus, the former White House chief of staff, and Sean Spicer, the former White House press secretary, left under tense circumstances, only to see their relationships with Mr. Trump thaw months after their departures. Both men have been back to the White House; Mr. Spicer was present this week when his favorite baseball team, the Boston Red Sox, was honored by Mr. Trump for winning the World Series last year.

On the other hand, some have never returned.

Despite Mr. Trump’s dislike of conflict, Stephen K. Bannon, the president’s former strategist, earned his wrath for receiving too much credit as the mastermind of Mr. Trump’s 2016 election win. Mr. Bannon, who left the White House in 2017, has remained publicly loyal to Mr. Trump, often supporting him in interviews with the news media.

“I happen to think today was the most important day of Donald Trump’s presidency,” Mr. Bannon declared this week in a Fox Business Network interview in which he praised Mr. Trump’s tough stance on striking a trade deal with the Chinese.

But in Mr. Trump’s eyes, Mr. Bannon committed two egregious sins — stealing his spotlight and attacking his children on the record in interviews. And so Mr. Trump, a cable news obsessive who makes it a habit to enthusiastically name-check his surrogates, has so far not returned the favor.

In the case of Mr. Trump’s former personal lawyer and fixer, Michael D. Cohen, the relationship is permanently broken. Mr. Cohen, facing the possibility of his wife being indicted along with him, pleaded guilty to a campaign finance scheme involving payments to two women who said they had affairs with Mr. Trump. Prosecutors implicated Mr. Trump in the scheme.

Occasionally, an aide earns both money and an unusual degree of publicity — all but guaranteeing severed ties. Omarosa Manigault Newman, another former senior aide who spent years at Mr. Trump’s side after her appearance on the reality TV show “The Apprentice,” prompted an irate tweet from the president after she wrote “Unhinged,” a tell-all book about her year in the White House.

Still, the list of advisers who have quietly stayed in the fold — often by flying under the president’s radar — is longer than the list of those who have been cut off. Over time, the Trump administration and campaign apparatus have served as the landing pad for a number of aides and advisers, a sort of Hotel California for the Trump World set.