Sorry to hear about your truck, at least the dealer is working with you. I share your feeling about this truck. I have a 16 Limited that I just love. I've had it tuned since about 1500 miles on truck currently almost 60K of trouble free miles. Problem is every time I turn around FCA wants to fix my truck via recall or AEM parts one and two. The only thing FCA has done is ruined this otherwise decent 1/2 ton diesel truck. FCA has wipe my tune out for the last time because I cannot get another one. So to protect my tune I either have to keep my truck out of the hands of the dealer, which is my current plan, or let them "fix" my truck again then trade it but like you I believe we will take a huge hit for it. I bought mine with incentives and a large down payment with a trade. These trucks are not in the KBB or Edmunds websites because of the EGR safety recall. Love my Ram hate FCA.There is no way in this green earth I'd ever buy one of these again.
Honestly, I don't (fully) blame FCA, or VM, I blame the EPA. At this point, if they're going to choke diesel engines to death and make it illegal to do anything to them to remove the crushing equipment they force makers to have on them...I see no reason to ever own a diesel again, ever.
I'll say that I'm not getting my hopes up for a buy-back. If I had to take a stab, I'd say that they'll replace the engine and it may or may not pop when I hit 60K miles...
Sadly, this thing has depreciated out from underneath me...sad figuring how far ahead of value I was when I bought it (deep discount + large down payment). At this point, I came to terms with the fact that I'm just stuck with the thing.