auto-cycle: switch to the longest chain