Preheat the oven to 200°C/400°F and line a large baking tray with parchment.
Pulse the whole onion in a food processor until finely chopped, then squeeze out excess moisture.
Combine onion, panko, beef, beaten egg, garlic, crumbled stock cube, salt, pepper, jalapeño, cheddar, and parmesan in a bowl.
Lay the pastry sheets on a lightly floured surface and cut each in half. Divide the filling into four long logs, place one on each pastry strip, and roll pastry around the filling with the seam underneath.
Cut each log into two portions, arrange seam-side down on the tray, and brush with egg yolk. Sprinkle with sesame seeds.
Bake for 25 minutes, rotate the tray, then bake for 20 to 25 minutes more until the pastry is puffed and deeply golden and the beef is cooked through.
Rest for 5 minutes, then serve warm with tomato sauce.