UA565 YYZ-SFO literally cleared 5 minutes before take off. They were already in the process closing doors and I was sitting in 7C when I refreshed my UA app and it showed upgrade cleared for F. Asked an agent to move seats but she just told me 'I'll get back to you', deplaned and never saw her again. FA's told me to move up front instead.