OK, I'm two pages into this thread and have looked at the OP's images a couple times. I know this has to be frustrating and upsetting, but why would you even open that door in that situation? Sorry, FoxXxy, what were you trying to accomplish? Or did you not see the low hanging beam?
There are sensors in the FWDs that are intended to avoid collisions. However, it seems that shapes like this confound the doors. As I understand it, the sensors in the doors are all located facing outward, below the windows. Given the close proximity of the beam and the sensor angle, I would surmise that the collision detection saw no reason to stop until it was too late and then stopped from resistance, too late for the window glass and surrounding trim.
IMO, the biggest issues with the FWD's are not the physical design or operation, but the size combined with that assurance of them detecting a potential hazard. Having spent plenty of time in other cars with gull wing or other vertical opening doors, I can say that most people get a feel for them. Just as regular car doors require us to have a feel for how far we let them swing out. And even that isn't without problems as people regularly open doors into cars and other objects next to them. Most of those cars I've spent time with that have vertically operating doors, are usually built much lower to the ground and are not the size of a mid-to-large SUV.
Really, it's great the doors have the sensors in them. And the sensors seem to do an outstanding job of detecting objects immediately to the side of the car -- like another car. Other than that, I would recommend not opening the FWDs unless there is proper headroom to do so. They seem to adjust to overhead objects and obstructions in the form of low ceilings, but garage door rails, low-hanging beams and other such things don't always register with the sensors.
Like others here, I would definitely like to know what Tesla's stance is on this incident. I'm sure they would like to have sensor data, if it can be obtained, and to run a full diagnostic on the car when it is repaired. Perhaps they can use this incident to make the doors better. But the engineer in me keeps looking at FoxXxy's first picture while saying "why would you open your door under that?"
EDIT> Oh... Your "doofus" husband opened it. Haha. I'm often accused of being a doofus husband as well. Anyway, please don't take my post as seeming to be insensitive. I just tend to be analytical much of the time. And so sorry about your car. I feel your pain while I still await delivery of mine.