Revert "Add commands to history immediately"

This reverts commit e67a3cb59793c940bb0839711a9191093ab9a468.