In an 11th-hour twist, the 49ers and Jimmy Garoppolo are planning to continue their partnership. The parties agreed to a restructured contract that is expected to keep the two-time NFC championship game starter in San Francisco, Adam Schefter of ESPN.com tweets.

This one-year deal includes a no-trade clause and a no-franchise tag clause, Schefter adds. Garoppolo will remain a 2023 free agent-to-be. This adjusted deal will be worth $6.5MM in fully guaranteed base salary, per Schefter, who adds playing-time bonuses could add another $9MM to the accord. The 49ers, who had given Garoppolo’s camp permission to negotiate his contract with other teams months ago, had been working with the veteran passer since last week on this pay cut, Schefter tweets.

Monday’s compromise will both provide the 49ers with Trey Lance insurance and ensure Garoppolo collects a decent 2022 sum. While this is nowhere close to the $24.2MM base salary his 2018 extension was set to pay him, keeping that number on the books was never in the cards for the 49ers. A Garoppolo release may well have led to a payment shy of this $6.5MM salary as well. This new contract also includes $500K in roster bonuses. In total, Garoppolo’s 2022 compensation package maxes out at $15.45MM, Albert Breer of SI.com tweets. The path toward cashing in all those incentives is likely tied to Lance.