Do you like your truck otherwise? If so, fix it and drive on. Yes it's frustrating to have these things happen...I had the condenser issue that ultimately ended up costing me about $500. I also had the numerous recalls and expensive service -- $170 for front differential fluid change, C'mon man!!! But after about 4 or 5 years, things do break and fixing them is waaaaaay cheaper than the depreciation, and the tax, title, license of a new truck. A new AT4 to replace my Sierra Z71 is $55K not counting TTL and insurance increase. That's around $30K to get into a new truck not counting any upgrades I would do to the AT4 (like tires). Even if you put $10K into your current truck over the next 4 years (highly unlikely), you are money ahead.
But sometimes it's just time for a new vehicle. 'Merica!