Stop in for a cup of coffee

so riddle me this. Semi, N14 cummins. brand new starter, brand new Alternator, new relays, voltage regulator, batteries, new cables, new wiring harness throughout the entire chassis. Truck starts and runs fine. But if it stalls or you shut it off while hot, it will not refire. Acts like it has dead batteries and we have to jump it. After it sits and cools down to ambient, it fires right up no problem. Alternator charging. Batteries are holding a charge.
Starter not cranking after heat soak. I i would do a load test at starter, and check current draw while cranking.