You can remove the top cap and put it in your pocket while troubleshooting. It doesn't do anything while you ride down the road.
Check for cables or housings loose, hitting or not under tension.
I had a noise and found it was the brake housing loose and bouncing around cause the brake cable was not under any tension when not applied - disk brake. Tightened the cable a tiny bit and it went away.