If a player’s commander is upgraded, the resulting creature is still their commander. If it leaves the battlefield, the commander can be put into the command zone instead, and the other cards move to the expected zone.