Avengers: Infinity War trailer breakdown Bad Blood?

Your suspicions Loki was going to go after the Tesseract during Thor: Ragnarok are 100% correct. It happens to contain the Space Stone, one of Stones Thanos is after, so what's going on here? Is Loki actually offering it up to him? Has he gone back to his villainous ways? Or could this be something else?