@cstross
Depends on whether the crops were already getting too much sun, vs. barely enough. The places where solar panels improve yield are places where it's dry and hot. *
Places that are plenty shady and humid already, can lose production due to panels. But if the extra shade doesn't cause your crops to develop fungal diseases, the lost harvest can be balanced out by the electricity as an alternate source of income.
* https://coloradosun.com/2024/10/02/agrivoltaics-denver-botanic-gardens-chatfield-solar-power-vegetables/