Blanch the green beans. Bring a medium pot of salted water to a boil. Add the trimmed green beans and cook for 3 minutes, until bright green and slightly tender. Immediately transfer to an ice bath to stop the cooking. Drain thoroughly and pat dry to remove excess moisture.
Cook the onions. Melt the butter in a large, deep sauté pan over medium heat. Add the diced onion and season with the salt and black pepper. Cook for 4–5 minutes, stirring occasionally, until softened.
Brown the mushrooms. Add the sliced mushrooms to the pan and cook for 8–10 minutes, stirring occasionally, until they release their moisture, the liquid evaporates, and the mushrooms begin to brown. Adjust the heat as needed to encourage browning without burning the butter.
Add the garlic. Stir in the minced garlic and cook for about 30 seconds, until fragrant.
Make the roux. Sprinkle the flour over the mushroom mixture and stir until fully incorporated. Continue cooking for 1–2 minutes, stirring frequently, until no dry flour remains.
Make the creamy mushroom sauce. Gradually whisk in the chicken broth, adding a little at a time and stirring until smooth before adding more. Slowly stir in the half-and-half, Worcestershire sauce, and soy sauce.
Thicken the sauce. Bring the mixture to a gentle simmer over medium heat. Reduce the heat to medium-low and cook for 2–3 minutes, stirring frequently, until the sauce is thickened and creamy. Taste and adjust the salt and black pepper as needed.
Combine the casserole. Add the drained green beans and ½ cup of the French fried onions to the creamy mushroom sauce. Gently fold until everything is evenly coated. Reserve the remaining 1½ cups of crispy onions for topping.
Transfer to a baking dish. Spoon the green bean mixture into a lightly greased 8x8-inch or similar 2-quart baking dish. Proceed with the baking instructions below, or follow the make-ahead instructions if preparing in advance.