Fix issue with commands being disabled although user is logged in
fmt
Fix tests
Detect when user is idle