In an early sign of new warmth between Bangkok and Naypyitaw, up to 130,000 Myanmar refugees in camps on the Thai side of the border may be returned to Myanmar soon.
If the process which could take up to a year is successful, it would be a landmark achievement. Many of the refugees have been in the camps for decades and an entire younger generation has been born and raised in them. For years, it has been considered unsafe for them to return to the conflict zones they have fled in past decades.
The plan is partly the result of an obvious coziness between the military junta in Thailand, which seized power on May 22, and Myanmar's military - still the real power with 25 per cent of seats in parliament allocated to military appointees.
The camaraderie between visiting Myanmar armed forces chief Senior General Min Aung Hlaing, and Thai armed forces supreme commander General Thanasak Patimaprakorn, in Bangkok on July 4 raised eyebrows, not least because the Myanmar general reportedly said the Thai army had done the right thing seizing power.
The Myanmar army had faced a similar situation in 1988, he said. It is not known if there was any mention of the army's shooting of hundreds in Yangon demanding democracy in 1988.
Then the two generals hugged each other. The image has become a symbol of the meeting of military minds from both sides of the border.
Thailand and Myanmar may have been traditional rivals in ancient times of warring kings; around 250 years ago invading Burmese burned Ayutthaya.
The sacking of Ayutthaya is something Thais have never forgotten. But still, it is ancient history; in the modern era Myanmar's generals have always collaborated closely with their Thai counterparts. In 1997 for instance, then-Thai premier and former defence minister Chavalit Yongchaiyudh made much of being "best friends" with Myanmar at a time when the military-run nation was ostracised by the west.
Today ties are far deeper even than the hug suggested. Senior General Min Aung Hlaing, Myanmar's powerful army chief who could also be a contender for the presidency, is the adopted son of General Prem Tinsulanonda, Thailand's former army chief and president of the King's Privy Council.
The "adoption" is a godfather-godson relationship. General Prem, when he was chief of the Thai army, knew Senior General Min Aung Hlaing's late father. According to Thai media reports, during a visit to Thailand in 2012, Senior General Min Aung Hlaing, 58, asked General Prem, a symbol of Thailand's royalist-military elites, to adopt him as his son. The 94-year-old Thai general, who has no children of his own, agreed.
It is General Thanasak who has been helping to fix appointments with General Prem whenever Senior General Min Aung Hlaing visits Thailand.
Relations between the two militaries are nothing new especially along the border, where for years army commanders at the local level have co-existed and made deals with each other, often independent of their central commands and government policies.
But there has also been friction - over narcotics, natural resources, and dealing with the spillover of ethnic conflicts.
Prominent Thai journalist and regional affairs commentator Kavi Chongkittavorn has written that "It has been an open secret that the Thai military used to obtain concessions, especially in the lucrative logging and gemstone business, in exchange for security cooperation. It was common in the past for security forces along the Thai-Burmese border not to pursue policy as directed by the central government."
The new relationship seems to be deeper, linking military elites of both countries on a personal level. Senior General Min Aung Hlaing has met with General Prem thrice since 2012; their most recent meeting was this month, when General Prem had lunch with the visiting general and his 21-person entourage. Among the array of gifts the ageing General Prem - considered a mentor to generations of Thai army elites - presented to his adopted son was a necktie printed with his own signature.