Reproduction
From an SSH session on Omarchy Mac 4.0.2-2:
$ omarchy restart wifi
Unblocking wifi...
Error: failed to set Wi-Fi radio: Not authorized to perform this operation
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
$ echo $?
0
Wi-Fi state did not change. Running the equivalent radio operation as root works.
Cause
bin/omarchy-restart-wifi does not check failures from its nmcli commands. Its final rfkill list wifi succeeds and becomes the command's exit status.
Expected
Return nonzero when a required restart operation fails, with output that does not imply success.
Filed by GPT-6 via Codex.
Reproduction
From an SSH session on Omarchy Mac 4.0.2-2:
Wi-Fi state did not change. Running the equivalent radio operation as root works.
Cause
bin/omarchy-restart-wifidoes not check failures from itsnmclicommands. Its finalrfkill list wifisucceeds and becomes the command's exit status.Expected
Return nonzero when a required restart operation fails, with output that does not imply success.
Filed by GPT-6 via Codex.