If any locomotive or wagon is destroyed the train is stopped and a ghost is created. Including inventory filters and inventory limit, fuel and equipment. As soon as the train is fully repaired it is set to automatic mode again.
Why do you think that https://github.com/MagmaMcFry/Factorissimo2 is a good alternative to ick-automatic-train-repair