You may be thinking of the Kyoto protocol, which did exempt "developing" countries like China and India (which I agree is very flawed). The Paris agreement includes China though.
https://www.aljazeera.com/news/2017/06/china-vows-commit-par...
Meanwhile the West keeps sending more business, more manufacturing and more recycling to China - they are, in no small part, merely moving the accounting of the West's emissions. Of course they are also a developing country - it's not realistic for them to do that entirely sustainably without Western subsidy - an idea not discussed seriously since probably Rio in the early 90s, when there was briefly talk of an intent to help the developing world fast-track right past our dirty phase of development. China have been inconsistent about coal too. So have some countries in the best performing bloc, the EU. Notably The Netherlands, Poland and Germany.
I do think it was absurd China (and to a lesser extent India) came out of Paris with an almost limitless potential to increase emissions until 2030. Neither are undeveloped and remotely like the world's poorest.
A more sensible approach would have been to tie subsidy to each, and every trade deal. An EU or USA that truly cared about emissions would impose a carbon or renewables levy on products coming in from China and others. The US would push their pet the WTO to bake in emissions into global trade rules.
Had any of that been done round about Rio, or even as late as Paris, we might have a far more optimistic outlook.
https://upload.wikimedia.org/wikipedia/commons/1/15/World_fo...