My employer applied for a transfer of my H-1B status, and it was granted until date X. However, my visa stamp has a date Y that is later than the date on the I-797 (i.e., X < Y). Date X is approaching and my employer wants to extend it.
Now, the last time I entered the country (recently), the officer put on the I-94 card the date Y as the status expiration date. He didn't even ask for the I-797 form.
My understanding is that I still have to apply for an extension of the H-1B, given it was only granted until date X. I will return the I-94 card the next time I leave the country, and if I try to enter back, I cannot use the I-94 card as proof that my status has not expired (since I will no longer have it)