Removed the thermostat and drove today. Still getting hot just before the red. Fan runs when cooling for the ac but stops when past 200. Then ac compressor begins to cycle very frequently and fan is not running. Problem has to be in the control of the fan which seems to be only from the ecm.
You stated the system worked for a couple of weeks. So something must have happened.
I assume you keep the A/C on at all times. (I do)
What happens with the cooling fan when you turn off the A/C after starting the truck? Fan controller appears to be inop in the normal mode, but functions with the A/C until an overheat condition? (A/C shuts down when overheat detected in order to assist in faster cooldown in many vehicles, as well as transmission limitations)
Does the fan run and/or change speeds as the engine warms up and when it is driven at normal temperatures?
The temp switch appears to be working. When you disconnect the plug on the temp sender it opens the circuit and causes the gauge to indicate hot. Plugged back in all appears normal until the engine overheats and the gauge indicated hot. So temp sender appears to function properly. (Bubbling coolant recovery suggests it is definitely hot)
The thermostat removed and still overheats. Flow impedance? Fan operation?
Heats up coming off the highway? Air reduction through the radiator fins by slowing down. Fan controller? Inadequate radiator, water pump? How many rows and fin count? Slower water pump flow through an impeded cooling system? Check the lower radiator hose for firmness and if it has an anti-collapse spring properly positioned in the hose. (when hot, rev up the engine several times to create a draw from the water pump while observing the lower hose)
So far suspected by presented symptoms =
ECM and related fan controller circuit/plugs and/or something impeding flow (hose/radiator/pump) and/or cooling system pressure issue (low boiling point).
Less likely, internal friction, cylinders, rings, bearings.
The bubbling coolant in the recovery tank jarred a memory cell. Back in the mid 80's I was looking at a used Oldsmobile station wagon which was diesel powered. On the test drive everything was going well, until it reached operating temperature, when the hot light came on. Checking under the hood the coolant bottle was "boiling" violently while the engine was running. Turned engine off, and slowly ceased bubbling. Back on, and
Fizzies galore (showing my age). The infamous head gasket on those GM diesel Wanna-Be's. No sale that day.