because an air leak will lean out your mixture, and when cold the engine needs to run richer than usual to run properly. Once the engine has warmed up a bit, the lambda probe is activated and it can compensate for the lean mixture condition.
I think. Maybe.

Edit: At the end of the day it happened after you were fiddling, so maybe something got knocked
