the exact answer is this
Q7. What if a student’s post-completion OPT has expired and the student is in a valid grace period when an H-1B cap-subject petition is filed on their behalf? It appears that F-1 status would be extended, but would OPT also be extended?
A7. F-1 students who have entered the 60-day grace period are not employment-authorized. Consequently, if an H-1B cap-subject petition is filed on the behalf of a student who has entered the 60-day grace period, the student will receive the automatic cap-gap extension of his or her F-1 status, but will not become employment-authorized (since the student was not employment-authorized at the time H-1B petition was filed, there is no employment authorization to be extended).
Q7. What if a student’s post-completion OPT has expired and the student is in a valid grace period when an H-1B cap-subject petition is filed on their behalf? It appears that F-1 status would be extended, but would OPT also be extended?
A7. F-1 students who have entered the 60-day grace period are not employment-authorized. Consequently, if an H-1B cap-subject petition is filed on the behalf of a student who has entered the 60-day grace period, the student will receive the automatic cap-gap extension of his or her F-1 status, but will not become employment-authorized (since the student was not employment-authorized at the time H-1B petition was filed, there is no employment authorization to be extended).