We found the issue in our car and fixed it. It was in fact the bar…kinda. The bar in question (runs along the width of the car in the rear of the vista roof, sits between the glass and the sunshade fabric), at least in my car, has a weird metal clip where it terminates on the right side. Applying pressure to that metal clip with my finger while my wife drove eliminated the noise completely. The clicking and rattling seems to be that metal piece shaking loose and springing against the bar. We fixed it for three dollars (and some careful work by my wife working in the very tight space between the glass and the headliner) by wrapping a cable management tie really tight around the bar and clip. Have driven 20+ miles and the noise is completely eliminated.
i am attaching pictures of the clip, the ties we used, and the final product (had to use my phone camera to get a visual because of how tight the space is above the headliner). I would NOT use a plastic zip tie as the tie itself will rub against the sunshade fabric and you dont want it to tear. I like the ties in the picture because the soft side of the velcro is what touches the sunshade fabric.
it took my wife (who is awesome) a few tries given how tight the space is…wasnt easy but the final product worked wonders. I imagine quiet tape would work similarly.
hope this helps - considering there is soft tape under the clip before we made our repair it seems someone realized this is an issue at some point.