Just for the record I went through this process this year with my spouse and a lawyer. My spouse did continue studying and had their i-130, i-485, and i-131, however the immigration office told our lawyer and said their F1 was no longer valid and that my spouse was under “authorized stay” not a visa any longer, especially for i-131.