First I would question the abilities of the doctor(s) who did the somewhat common surgery and the rehab center you went to after the surgery. If the second surgery was by the same doctor and the same rehab center was used for recovery...than you may have a serious medical malpractice or rehab procedure problem. Was it laser surgery, I wonder? Did you layoff long enough for the tendon to heal 110%? Tear at the lower or upper inserts of the triceps? How long ago was the last operation and how long the rehab?
Far as weight training goes, might suggest not doing any direct pressing exercises. If, or when, returning to workouts, keep the triceps area warm with long sleeves, stick on heat pads, etc.. Also apply a heating element, like lotions, rubs, etc. Might also avoid and extreme stretching, like pullovers, pulldowns, etc.
Just use caution and common sense when going through a recovery stage. Caution & common sense, qualities lost on many BB'ers after any kind of surgery. In some cases, very minor tears have been knows to heals themselves naturally. Yours seems to be not the case.
Good Luck.