It seems to be a recent problem. Some batteries made in the past ~year from nicer manufactures (Anker, RAVPower) will not resume charging after I come to a stop. Maybe they are charging, but the LEDs don't light up like normal. When the current drops to zero, they will not restart until the cable is unplugged and plugged in again. Specifically, I had that issue with these two batteries:
https://www.amazon.com/gp/product/B077CY4M8P/
https://www.amazon.com/gp/product/B07HBTY3Z2/
I have older Anker batteries from over a year ago that did not have this issue. They don't have pass through charging though. Several forums recommend the Voltaic V20 or V44, which are no longer produced. However, the new V25 does not work with dynamo hubs according to a review on Amazon here:
https://www.amazon.com/Voltaic-Systems-Formerly-Battery-Samsung/dp/B07ZS3WYZY/