In a large pot or Dutch oven, melt the butter over medium heat. Add the sliced onions and stir to coat. Cook, stirring occasionally, for 20–25 minutes or until golden and deeply caramelized.
3 tablespoons butter, 4 cups yellow onions
Stir in the salt and pour in the cooking sherry to deglaze the pot. Let it bubble for a minute, then sprinkle in the flour and cook for another 2–3 minutes until the mixture thickens slightly.
¾ teaspoon salt, ¼ cup cooking sherry, 1 tablespoon flour
Pour in the beef broth and bring to a boil. Stir in the uncooked pasta and cook for about 10 minutes, or until pasta is al dente.
3 cups beef broth, 1 pound short pasta
Stir in the black pepper, thyme, and half of the Gruyère cheese. Mix well to combine.
1 tablespoon fresh thyme, ½ teaspoon black pepper, 1 ½ cups gruyere cheese
In a small bowl, toss the panko breadcrumbs with the melted butter.
½ cup panko bread crumbs, 1 tablespoon melted butter
Sprinkle the remaining Gruyère over the casserole, followed by the buttery breadcrumbs. Place the pot or baking dish under the broiler for 5–7 minutes, or until the top is golden and bubbling.
Let rest for a few minutes before serving. Finish with a sprinkle of fresh thyme.