It came into my head while I was reading.
There were infrequent visits, the issue of course being that heads of state had other things to do besides appear in the capacity of commanded-in-chief. George V, Tsar Nicholas, Kaiser Karl, Clemenceau, all made visits to the frontlines.