On the same wavelength
Means to strike a rapport with or understand another person perfectly, derives from the early 20th century from the early days of radio broadcasting. Versions that are more modern would be, ‘singing from the same hymn sheet’ and ‘on the same page’. The former is British, the latter American, both from the latter half of the 20th century.