Kyojy
We typically make the assumption that we have until the Sun's entire lifetime to figure out how we're going to survive a cataclysm on a cosmic scale. This notion is indeed as false as they come; the Sun is getting hotter over time and we've only got ~1 billion
+ so years until this haven of ours becomes a smoldering furnace of death (at least in climate terms). But hey, the good news is there's at least a shot in hell that Mars will become warm enough due to this heating for us to inhabit it for the remaining ~3.5 billions years or so, at which point the Sun will expand into a red giant and destory any hope of ever living on the terrestrial planets indefinitely.
I think you're pretty optimistic here in terms of the human species' collective lifespan. A billion years is longer than animals have existed on our planet. Humanity
will not exist that far from today. Maybe one of our descendants, but they will be as unlike us as we are from fish. Who's to say that in the far future Earth isn't inhabited by subterranean mole people who built an artificial haven from their dying sun? Or it might not be inhabited anymore at all, the last sapient beings having long ago adapted themselves to survive in raw vacuum. A billion years from now Earth might as well be another planet.
Bear in mind that humanity has only been around for an extremely brief period on the geologic scale. Even by the standards of the animals around us, we're newcomers. Bears have been around for over 30 million years. Deer aren't much younger. Anatomically modern humans have been around for a few hundred thousand years, and the split between the line of descent that would eventually become humans and the lines that became the other apes was less than 10 million years ago. Our society has happened
overnight. We have no idea how stable our existence really is. A few more thousand years, barring our own self-destruction, seems plausible. Beyond that it's pretty much anyone's guess.
I guess what I'm saying is that humanity won't have to worry about the sun kerploding because we'll be long gone by that point, and whatever comes after us will be as alien to us as, well, aliens.