Not 100% on these but try a new engine temperature sensor. Might be telling the ECU its running cold, when the inlet is hot, when you unplug the inlet temp sensor they will both have a corresponding value and make the engine run as if its cold, will idle higher and a lot better.