Cocoa grown under shade in some situations may be more resilient to climate change . Schwendenmann et al.  implemented drought experimentally in the field and found shade trees increased drought resilience. Shade trees insulate the understory crop from the warming and drying sun . On the other hand, full-sun cocoa systems may be more climate resilient in some cases , as interactions between understory trees and shade trees are complex; in addition to shade effects, evapotranspiration and root interactions must be considered . Moving to a full-sun system may also involve additional inputs in irrigation, fertilizer and labour. Neither  reviewed the literature comparing the two cocoa production systems and concluded that the agroforestry system was superior in terms of climate adaptation.
IPCC
Climate Change 2022: Impacts, Adaptation and Vulnerability
IPCC Report