Slice the onions thinly and set aside.
In a skillet, melt butter with olive oil over medium heat.
Add sliced onions and sugar, stirring to coat.
Sauté the onions for about 10 minutes until they start to soften.
Add minced garlic and thyme, cooking for another 2 minutes.
Transfer the onion mixture to the crockpot.
Pour in the beef broth and wine, stirring gently.
Season with salt and pepper to taste.
Cover and cook on low for 8 hours or high for 4 hours.
Before serving, toast the baguette slices and sprinkle cheese on top.
Broil until cheese is bubbly, then serve over the soup in bowls.