Preheat the oven to 350°F (175°C).
Heat olive oil in a large skillet over medium heat.
Add sliced onions to the skillet and cook until caramelized, about 15-20 minutes.
Add ground beef to the skillet, breaking it up and cooking until browned.
Season the mixture with thyme, salt, and pepper, stirring well.
Pour in the beef broth and bring to a simmer.
Stir in the sour cream until well combined.
Transfer the mixture to a greased baking dish.
Sprinkle shredded Gruyère cheese evenly over the top.
Top with panko breadcrumbs for a crunchy finish.
Bake in the preheated oven for 30-35 minutes, or until golden and bubbly.
Remove from oven and let sit for 10 minutes before serving.