My question is whether the F1 will be able to stay, not rather she'd be able to return if she left. If the F1 doesn't leave the country, and she files I-765 at the same time, it's okay to stay and work, right? That wouldn't be considered unlawful presence if all the required paperwork is filed and she doesn't leave the U.S. while AOS is pending, would it?

Also, doesn't the approval of I-131 Travel Document override a pending AOS?