sounds like an idle stepper issue or maybe there is a vacuum leak somewhere and once everything heats and expands it seals to the point it doesnt affect the idle? try making a vacuum tester and connect to the throttle pressurize it and listen for air leaks in the intake gasket etc, use soapy water to look for bubbles. Make sure you do it with a cold engine to replicate when the car idles poorly.