Preheat the oven to 350F.
Bring a heavily salted pot of water to a rapid boil, drop in your beans. After three minutes drain them through a colander then immediately transfer to an ice bath to halt the cooking process. As soon as they’re completely cool transfer the beans to a towel lined plate to dry. Set aside.
Place a large sauté pan or dutch oven over medium-high heat. Add the butter to the pan then, then the mushrooms, garlic and shallot. Cook, stirring occasionally until the mushrooms are golden brown and the shallot and garlic are fragrant, about 5-7 minutes. Next, sprinkle in the flour and a generous pinch of salt, cook for 2 minutes stirring frequently then pour in the white wine, cook for an additional 2 minutes.
Whisk in the cream, chicken stock, thyme and Worcestershire. Bring the mixture to a simmer, whisking frequently until the sauce is thick and bubbling then turn off the heat. Taste and season with salt and pepper.
Place the green beans in an oven-safe baking dish then pour the mushroom sauce overtop. Cover with foil and bake for 25 minutes then uncover, sprinkle on the onions and bake for an additional 10-15 minutes or until golden brown and bubbling!