fn requested(args: &[String]) -> bool
Only the first argument counts: agentmux --version, not a --version somewhere in a command line that means something else.
agentmux --version
--version