President Trump has discussed with confidants and advisers in recent days the possibility of installing a new attorney general through a recess appointment if Jeff Sessions leaves the job, but he has been warned not to move to push him out because of the political and legal ramifications, according to people briefed on the conversations.

Still raging over Sessions’s recusal from the Justice Department’s escalating Russia investigation, Trump has been talking privately about how he might replace Sessions and possibly sidestep Senate oversight, four people familiar with the issue said.

Two of those people, however, described Trump as musing about the idea rather than outlining a plan of action, and a senior White House official said no action is imminent. Several people familiar with the discussions said that Trump’s fury peaked over the weekend and that he and Sessions now seem to be heading toward an uneasy detente.