Preheat the oven to 400F/200C.
First, make the mashed potato. Put the potato chunks into a large saucepan of cold water with the salt and bring to the boil. Cook for around 10 minutes until knife-tender, then drain. Let the potatoes sit and steam for 5 minutes or so before mashing, to allow some moisture to escape.
Mash the potatoes with the butter and milk or cream. Stir in the Cheddar and mustard, then generously season, mashing a little more if needed (I typically end up using ¾ teaspoon of salt and ¼ teaspoon of pepper, but work to taste).
While the potatoes are cooking, heat a drizzle of oil in a large frying pan over a medium heat and add the sausages. Fry until browned and cooked all the way through. Remove from the pan, leaving the fat, and slice each one diagonally into four chunks.
Add the onions to the sausage fat and fry until softened and starting to pick up colour. Lower the heat slightly and continue to fry for 15 minutes or so, stirring occasionally so they don't stick to the pan, until golden and caramelized. Season with salt and pepper.
Melt in the butter and bring the heat back up to medium. Stir in the flour to create a roux. Pour in the red wine and stir until the roux reforms. Gradually pour in the beef stock, stirring as you go to ensure no lumps form.
Add the Worcestershire sauce, thyme and salt and pepper to taste. Simmer for 15 minutes until it's nice and thick, then stir through the sliced sausages. Transfer the filling to a baking dish and allow to rest for at least 5–10 minutes so a 'skin' forms over the top.
Dollop by dollop, add the mash on top of the sausages. I recommend working from the outside and not pushing down too hard, otherwise the gravy layer will become uneven. Use a fork to rough up the top, then place the dish on a baking tray (important because gravy will leak out!) and cook in the oven for 20 minutes, or until nice and golden on top. Allow to rest for 5 minutes (so it keeps its shape), then serve and enjoy!