After an offseason in which a divorce seemed all but certain, the 49ers and quarterback Jimmy Garoppolo are staying together for one more season.

Sources told ESPN's Adam Schefter on Monday that Garoppolo and the Niners agreed to a restructured one-year contract that is worth $6.5 million in fully guaranteed base salary. The new-look deal contains another total of $500,000 in roster bonuses and playtime bonuses that could boost it by another nearly $9 million for up to a total of $16 million if all bonuses are reached.

Garoppolo's restructured contract also includes a no-trade and no-tag clause which ensures Garoppolo will serve as the backup to Trey Lance this season and will then be able to explore unrestricted free agency in 2023.