According to an M.D. allergist and immunologist, you will not have an allergic reaction from the smell of peanuts being consumed by someone else, nearby: Can Simply Smelling Peanuts Cause an Allergic Reaction? | UNC Health Talk (unchealthcare.org)
Persons who are allergic to peanuts may, however, experience anxiety at the smell of peanuts, and have associated anxiety symptoms, even shortness of breath.
While the above is true for tree nuts, he says, a shellfish reaction is possible to steam or related odors given off during cooking of shellfish.
Note – I am allergic to almonds, cottonseed and safflower, plus allergies to several medications including an anaphylactic reaction to sulfa antibiotics. I carry 3 medications with me at all times and typically experience a reaction about once every 1-2 years, always when eating “mystery food” such as at a restaurant.