The passenger trains (towards Fenchurch Street/Stratford) had additional carriages which were detached at the junction and a second locomotive worked them though to Stratford.
The commuter trains had supplementary cars that were separated from the main train at the junction and a second engine pulled them through to Stratford.