Discover command state and persist