Peel and slice the onions.
In a large Dutch oven, melt the butter over medium heat. Add the olive oil.
Add the sliced onions and a pinch of salt. Reduce to medium-low heat and cook for 45–60 minutes, stirring occasionally, until deeply caramelized and golden brown. If the onions begin sticking, add a splash of water and scrape the bottom of the pot.
Sprinkle in the flour and stir for 1–2 minutes.
Pour in the white wine and deglaze the pot, scraping up any browned bits. Cook for 3–5 minutes until the wine has mostly reduced.
Add the beef broth, Worcestershire sauce, fresh thyme, and bay leaves. Stir to combine.
Bring to a gentle boil, then reduce the heat and simmer uncovered for 15-20 minutes. Season with salt to taste.
Meanwhile, preheat the oven to 400°F. Cut the baguette into ½–¾-inch thick slices and drizzle with olive oil.
Toast the baguette slices for 8 minutes, flipping halfway through, until golden brown and crispy.
Remove the thyme sprigs and bay leaves from the soup.
Ladle the soup into broiler-safe bowls. Place 1–2 toasted baguette slices on top of each bowl.
1Cut the Gruyère into thick slices. Place the cheese directly over the toasted baguette, slightly overlapping the slices and allowing the cheese to hang over the edges of the bread.
Place the bowls on a baking sheet and broil on high for 2–4 minutes, or until the cheese is melted, bubbly, and golden brown.
Garnish with fresh thyme and serve immediately.