if you believe in climate change , then heating a green house big enough to grow coffee or cacao would make your carbon foot print look like that of 100 people.
you maybe use 2 pounds of coffee a week , and if that coffee comes in by train or ship you carbon foot print on a years coffee stays quite low.
the cost of 2 pounds of coffee even if you buy good stuff is 20 dollars a week your at 1040 dollars
the cost of a large greenhouse and the heat to keep it through the winter would be huge
it would make a lot more sense to order cases of coffee a few cases of cocoa , and a few bottles of vanilla extract or better yet stock up when it goes on sale.
now if your really worried about climate change first understand this , you get Lied to a LOT about climate change.
lots of fear marketing happening.
if you want to help climate change eat as much local food as you can , cut firewood and heat your home with dead wood , if you want to really go all the way use a handsaw to cut the wood and an ax to split it.
use as little electric and fuel as you can.
Reduce , reduce , reduce
do what you can reasonably to reduce your consumption of energy , ride your bike when you can , stuff like that
by the time these crops go extinct it first we will all be dead from natural old age , second even if they were to go extinct some how in 30 years and you are 60 long before coffee and cocoa go extinct , you will starve to death or if you have food and no one else does they will kill you and take it from numerous other food crop failures.