Prep the ingredients and oven. Preheat the oven to 350°F and line two baking sheets with parchment paper. Cut the caramels into quarters, chilling them briefly first if they are sticky. Beat the butter, brown sugar, and granulated sugar until light and creamy, about 2 minutes. Add the egg, egg yolk, and vanilla and beat until combined.
Mix the dough. Whisk the flour, baking soda, and salt together, then mix into the wet ingredients just until a soft dough forms. Toss the caramels with 1 teaspoon flour, if using, and gently fold them in along with the chocolate chips, if using.
Portion and bake. Scoop 1½-tablespoon portions, roll into balls, and tuck any exposed caramel pieces inside. Press a few extra caramel pieces on top and place 3 inches apart on the baking sheets. Bake 10-12 minutes, until the edges are set and lightly golden and the centers still look slightly soft.
Cool and finish. Cool on the baking sheets for 5-10 minutes, then sprinkle with flaky sea salt while warm. Move to a wire rack to cool completely.