340 Running super weird

Did they mess with the vacuum advance ? It could be that your mechanical advance is now coming in too fast . The vacuum advance would be coming in on top of that during cruise and you are getting detonation . Then you idle and it returns to initial setting.
You will need to describe when it misbehaves as far as driving type … acceleration, part throttle cruise , hwy speeds …etc .