shfmt entirely reasonably does not plan to support fish (mvdan/sh#405) which means that when apheleia runs shfmt in shell-script-mode, the reformatting is not accurate.
It would be ideal if apheleia could limit shfmt to scripts written in a shell language that shfmt supports.