My attorney said that
If the renew is filed before H1B expires and you get the receipt, you can work another 180 days even it is in pending.
If the renew is filed before H1B expires and you get the receipt, you can work another 180 days even it is in pending.