On December 7, 1941, Japan launched surprise attacks against the U.S. naval bases at Pearl Harbor, Wake Island, and the Philippines, and on that same day Japan's diplomats in Washington were declared personae non gratae.
I have long more-or-less unthinkingly assumed such expulsion of diplomats just after the commencement of a war is how it's always done, if there are diplomats to expel. But now I remember that in 1782, when Britain and France were at war against each other, France admitted British diplomats whose purpose was to negotiate with American diplomats in Paris. The U.S.A. was then allied with France. In November 1782, when the British and American negotiators agreed on the content of a peace treaty, they called the document the "preliminary articles of peace" rather than calling it a proposed peace treaty to be submitted to higher authorities in both countries for approval. (Maybe I'm mistaken, but I think) that was because a treaty between the U.S.A. and France signed in 1778 said that neither would conclude a separate peace with Britain, and France was still at war with Britain.
One can imagine a diplomat from an enemy country being admitted in order to discuss whether peace can be concluded if a certain agreement on an international boundary can be reached or to discuss details of an exchange of prisoners of war, or perhaps for some other purposes.
What are current usages concerning admission of diplomats from enemy countries?