Add a 'remote-tty' flag to command records to control which commands will force the creation of a pseudo-tty for handling remote commands.