Recent progress in understanding the hot and warm gas phases in the halos of star-forming galaxies