Update command stats and sync tree node colors.