Cloned OS X to new HDD, startup starts same programs each time
Please see Matt Ball and my comments for the answer. The problem was:

A HTML file had somehow found its way onto the list of login items, and it was loading via Chrome, and presumably booting the Terminal window as well. After removing this file from that list, the problem has, as far as I can tell, vanished.