The line between comets and asteroids is somewhat blurred (see below) but when we see a big bright tail we at least like to call it a comet. This question is about exploration of the tails of big-tail-producing but otherwise small natural solar system bodies in heliocentric orbits.
Have spacecraft every been navigated through such a tail on purpose? If so, was it a challenge to predict the trajectory of the tail separately from the trajectory of the body producing it?
Sometimes there are a pair of tails (see this answer (voting to reopen the question)) responding differently to a mixture of forces, and sometimes there are many tails (see below). If this has happened, I'm wondering if there was a tail propagating algorithm used in order to target it with a spacecraft, and feedback from tail observations and subsequent tail-tracking trajectory correction maneuvers.