Preheat the oven to 200°C and line a baking sheet or small roasting tray with parchment paper.
Heat the olive oil and butter in a large skillet over medium heat. Add the diced onion and cook for 5 to 6 minutes, stirring often, until softened and lightly golden.
Add the minced garlic and cook for 30 seconds, just until fragrant. Stir in the chopped mushrooms, salt, black pepper, thyme, and rosemary.
Cook the mushroom mixture over medium to medium-high heat for 12 to 15 minutes, stirring frequently, until the mushrooms release their moisture and the pan becomes mostly dry. This step is important so the Wellington does not become soggy.
Stir in the Dijon mustard and chopped spinach. Cook for 2 to 3 minutes until the spinach wilts and any remaining moisture cooks away.
Remove the skillet from the heat and stir in the chopped walnuts and breadcrumbs. Spread the filling on a plate or shallow tray and let it cool for about 10 minutes so it is easier to handle.
Lightly flour a work surface and roll the puff pastry into a rectangle large enough to fully enclose the filling, approximately 30 by 25 centimeters if needed.
Place the cooled mushroom filling in a compact log shape down the center of the pastry, leaving a border on all sides. Fold the pastry over the filling, sealing the seam and ends firmly with a little beaten egg if needed.
Transfer the Wellington seam-side down to the prepared baking sheet. Whisk the egg with the water and brush it over the pastry. Cut a few small slits in the top to allow steam to escape.
Bake for 35 to 40 minutes, rotating the tray halfway through, until the pastry is deeply golden and crisp.
Let the Wellington rest for 10 minutes before slicing. Serve warm as the centerpiece of a vegetarian Thanksgiving meal.