Surging idle at a stop sign can also be caused by a bad Master Cylinder, when you mash the brakes if the Master Cylinder (Booster) is bad it'll create a vacuum leak and make the truck start idleing funny. This happened on my 88' Toyota PU. Once i fixed the Master Cylinder everything was fine again.

Good luck