Preheat the oven to 350°F. Line an 8-by-8-inch baking pan with parchment.
Whisk the melted butter with both sugars until smooth and thick. Whisk in the egg, yolk and vanilla.
Stir in the flour, baking soda and salt until just combined. Fold in most of the chocolate.
Press the dough into an even layer in the pan. Scatter the reserved chocolate on top.
Bake for 22–25 minutes, until the edges are golden and the center is just set.
Sprinkle with flaky sea salt immediately after baking.
Cool in the pan for at least 20 minutes before slicing into 16 squares.