The sunshade can be opened and closed by hand.
The sunshade opens automatically when the moonroof is opened, but must be closed by hand.

CAUTION
Jam-safe Moonroof
Security SystemMazda 6 Owners Manual: No.9 tcs off light stays on more than 4 seconds with ignition switch on
When performing an asterisked (*) troubleshooting inspection, shake the
wiring harness and connectors while
doing the inspection to discover whether poor contact points are the cause
of any intermittent malfunction. If
there is a problem, check to make sure connectors, terminals and ...
Mazda 6 Owners Manual: California Customers
1. Mazda North American Operations participates in BBB AUTO LINE, a mediation/
arbitration program administered by the Council of Better Business Bureaus [4200
Wilson Boulevard, Arlington, Virginia 22203] through local Better Business Bureaus.
BBB AUTO LINE and Mazda have been certified by the ...