Integrate this bizarre integral,
$$I=\int_{0}^{\infty}{\sin(x^{\pi\over4})\over x[\cos(x^{\pi\over 4})+\cosh(x^{\pi \over 4})]}dx=1$$
I try:
Let generalise the integral and try and to determine the closed form,
$$\int_{0}^{\infty}{\sin(x^n)\over x[\cos(x^n)+\cosh(x^n)]}=F(n)$$
$$\cos{x}=\sum_{n=0}^{\infty}{(-1)^{2n}x^{2n}\over (2n)!}$$
$$\cosh{x}=\sum_{n=0}^{\infty}{x^{2n}\over (2n)!}$$
$$\cos{x}+\cosh{x}=2\left[{1+{x^4\over4!}+{x^8\over8!}+\cdots}\right]$$
Can't go any further, so I used Wolfram integrator and try to figure out the closed form and I got $F(n)={\pi\over 4n}$.
After a change of variables $x^n=y$ (we assume $n>0$) the generalized integral reads
so it is enough to evaluate the integral for $n=1$.
This may done via the residue theorem. Using parity we write
$$ F(1)=\frac12\Im\left[P\int_{\mathbb R}\frac{e^{iy}}{y(\cos(y)+\cosh(y))}\right] $$
the integrand nicely converges in the upper half of the complex plane and has poles at $z_0=0$ and $z_{k,\pm}=(\pm1+i)(\frac{\pi}{2}+2 \pi k)$ in this domain. It is now not too diffcult to show that $\text{Res}(z_{k+})+\text{Res}(z_{k-})=0$ for any $k\in \mathbb{N}$.
From the above considerations (the factor of $\pi i$ =$2 \pi i/2$ is due to the fact that the relevant singularity is on the contour of integration) we get
$$ F(1)=\frac{1}{2} \Im[\pi i \text{Res}(z_0)]=\frac{\pi}{4} $$
or
putting $n=\frac{\pi}{4}$ we get $I=1$ as expected from OP's considerations