がけだった
kigakedatta

Noun
Da Copula

The past form of 来がけ

1. Was about to come.; Had just arrived.

Past/Perfective