added a method for determining eligibility whether a previously execute command should be added to the session history