Possibly currant clearwing moth, which tunnels into the shoots as you describe. The remedy is to prune it back far enough to remove all the damage and discolouration, and burn the prunings. hopefully the larvaeor pupae are still in there, and can be eliminated before the next generation emerges to lay eggs.