pub fn resolve_timeout(cmd_timeout: u64, config: &Config, default: u64) -> u64
Resolve timeout: use provided value, fall back to config, then default