For long range trucks (electric) there could be (in theory) yet another possibility, adding a trailer on the highways.
Not entirely unlike existing multi-trailer (used on some roads in Australia), so called Road Trains, but limited to two trailers, the main one and the battery trailer:
https://en.wikipedia.org/wiki/Road_train
the truck would enter the highway, stop at a service station, add a "powerpack" battery trailer, drive until the next station, swap battery trailer as many times as needed, then leave it at the last service station before destination.
Nikola advertises a battery electric heavy truck with 330 miles of range. Nikola and Volvo seems to still be pretending that they are going to use hydrogen but at the same time they are selling a lot of battery electric at this point and not a whole lot of hydrogen trucks. Mostly ranges are creeping up to the point where drivers must stop to take a break anyway that is long enough to top the battery up. So, the range anxiety argument is simply not there. It's a pure cost driven thing. And it's not like hydrogen fueling is particularly fast or cheap.
Of course, a lot of companies are opting for shorter range trucks because they are much cheaper and because that suits their needs. Long haul electric trucks are more expensive. Because of the extra batteries. So, yes, the sweet spot of the market is short haul, for now. But there's nothing inherently hard about longer range trucks. It's just a cost and supply chain issue. As battery production scales and prices come down further, we'll see more companies dip their toes into long haul.
Self driving is a thing that multiple electric truck and van companies are talking about at this point as something that they want to do. It's still pretty far out but it's not that much harder than self driving cars. But as I said, the bigger challenge here is simply replacing fleets which is an inherently slow process. But of course that's exactly where the money is going to be for manufacturers.