IT’s quite simple. If the ESP gets 5v, it will charge the lipo. So if the solar panels provide 5v, it will charge.
However, judging from my own experience, the ESP doesn’t seem to like intermittant power, it will stop charging.
So I cannot attest to the reliability of it.