Here is an answer that uses no tinkering: we have that $ \textrm{Gal}(\mathbf Q(\zeta_{16})/\mathbf Q) \cong (\mathbf Z / 16\mathbf Z)^{\times} \cong C_4 \times C_2 $, and we note that any element of the Galois group can be written as $ \sigma^i \tau^j $, where $ \sigma : \zeta_{16} \to \zeta_{16}^3 $ and $ \tau : \zeta_{16} \to \zeta_{16}^{-1} $. We observe that the subfield $ \mathbf Q(\cos(\pi/8)) = \mathbf Q(\zeta_{16} + \zeta_{16}^{-1}) $ is stabilized by $ \{ 1, \tau \} $, therefore its Galois group over $ \mathbf Q $ is given by $ \langle \sigma \rangle $, which is cyclic of order 4.
Note that if $ L/K $ is a Galois extension of fields with Galois group $ G $ and a normal subgroup $ H $ has fixed field $ F $, then $ \textrm{Gal}(F/K) \cong G/H $. This follows directly from the isomorphism extension theorem. Therefore, the above Galois group is just $ \langle \sigma, \tau \rangle / \langle \tau \rangle \cong \langle \sigma \rangle $. (It is important for this conclusion that $ \sigma $ and $ \tau $ commute.)