Sync gateway session pointers immediately after context compression rotates the agent session, even when the follow-up model call fails before a final response. Co-authored-from: https://github.com/NousResearch/hermes-agent/pull/25747