You said I swore your truck had sticking valves. Did I actually look at it or did we just talk on the phone? It sounds like we talked on the phone, and indeed sticky valves would be at the top of the list for probable causes of your troubles. But it's not certain until it's tested.
If the check engine light is flashing you must have a significant problem that's going to be visible on the screen of a tester. You have received a number of good suggestions, and your truck is still broken.
I often hear of these situations, where all possible tests anad repairs have been done, but the truck still has a problem. So what's the answer? Something must have been overlooked or done wrong.
Your comment that the truck ran better with the temp sensor unhooked - when you do that the truck goes to a rich-running default program, and a bad running vehicle often improves (seemingly) with that treatment. But continued operation will damage your cats.
If you read the article on my web site you'll see there is a mechanical test for sticking valves. At lower mileage we always do that test so we don't do valve jobs by mistake. At high mileage the trucks benefit from a valve job whatever othe rproblems they may have . . .
You may have clogged injectors. You may have rust in the fuel rail. You may have a bad ecu. It does not sound to me like you have had good luck doing so, but you really need to get the vehicle diagnosed properly.
I find the factory Testbook/T4 is better than Autologic for difficult testing situations on engine running because of the way the data is presented. You may want to read the article on that on our web site.
If you're looking for a suggestion to try at home I'd say pull the fuel rail. Look for rust, and have the injectors flow tested. Go to
www.boschservice.com and look for auto service centers with flow test equipment.