Text this: Effects of boundary conditions on coherent synchrotron radiation in echo-enabled harmonic generation