Mega with built in ESP8266 OTA

Thank you for your help I have made some progress. The Arduino doesn't reset during upload but after 10 seconds it stops flashing.

I read your comment to add a "-t" instruction but I can't find out where that goes.

I apologise for my incompetence it's probably obvious to most but it would really help if you can show me where in platform.local.txt it should be.

thank you