In a large bowl, mix together the flour, salt, baking powder, and baking soda. Set aside.
Add the butter to a heavy bottom saucepan over medium heat. Stir until melted and the butter forms brown specks at the bottom, about 5-6 minutes. The browned butter will also smell nutty when done. Remove from heat to cool down to room temperature.
In a large bowl, combine the brown sugar, granulated cane sugar, egg, egg yolk, and brown butter. Whisk vigorously for 2 minutes, until fluffy and smooth. Whisk in the vanilla and sourdough discard.
Fold in the flour mixture with a spatula.
If the mixture is still warm to touch, place in the freezer for 5-10 minutes before folding in the chopped chocolate.
Cover with Saran Wrap and let chill in the fridge for at least 2 hours to overnight.