A sunshade is needed for that. Kinda long, baffles, matte black paint. Many sunshades have/had mechanical shutters that activated when the angular separation between the sun and the star being tracked was too small. Thus one probably didn’t have the complication of a shutter because they had the ability to choose from among many different stars with sufficient angular separation from the sun prior to each particular mission.
Thus one = This one