 After a rough ride through the stargate to P39-865, the sun of that planet turns red. Carter deduces that an override of stargate protocols allowed them to create a wormhole through the sun, starting a reaction that will cause the sun to die. SG-1 must now make up for their mistake or P39-865 will become incapable of supporting life.