Preheat the oven to 350°F (175°C). Lightly grease a 9 by 13-inch baking dish with butter or cooking spray.
Bring a large pot of salted water to a boil. Add the green beans and blanch for 5 minutes, until bright green and just tender. Drain and set aside.
Melt the butter in a large skillet over medium heat. Add the sliced mushrooms and cook for 5 minutes, stirring often, until softened and lightly browned.
In a large bowl, stir together the cream of mushroom soup, milk, soy sauce, garlic powder, black pepper, salt, thyme and cheddar. Fold in the blanched green beans and the cooked mushrooms until everything is coated in the sauce.
Transfer the mixture to the prepared baking dish and spread it evenly. Sprinkle 2/3 cup of the crispy fried onions over the top of the green bean casserole.
Bake for 20 minutes, until the sauce is hot and bubbling around the edges. Sprinkle the remaining 2/3 cup of fried onions over the top and bake for 5 more minutes, until the topping is golden and crisp.
Let the green bean casserole rest for 5 minutes before serving so the sauce thickens slightly and the topping stays crunchy.