Hi all
try the coolant sensor. My td4 was exactly the same at starting when warm. I changed the cam sensor and had injectors checked but still same problem. Cost me a tenner for the sensor and did the job myself which was quite easy to do. Hope this helps and is the cheapest option. Simon