Prep the apple: Peel and core the apple, then dice it into very small pieces, about pea-sized. Pat the apple pieces dry with paper towels to remove excess moisture. This helps keep the dough from getting soggy.
Preheat and line: Preheat your oven to 350°F (175°C).
Line two baking sheets with parchment paper or silicone baking mats.
Mix the wet ingredients: In a large bowl, whisk the melted butter, brown sugar, and granulated sugar until smooth and glossy. Add the egg and vanilla and whisk again until fully combined.
Combine the dry ingredients: In a separate bowl, whisk the flour, baking soda, baking powder, salt, and cinnamon.
Make the dough: Add the dry ingredients to the wet mixture and stir with a spatula until just combined. Do not overmix.
Fold in the diced apple and chopped caramels (and nuts, if using). If the dough feels too sticky, let it rest for 5–10 minutes to hydrate.
Chill briefly: Place the bowl in the fridge for 15–20 minutes. This quick chill firms the dough and helps prevent excessive spreading.
Portion the cookies: Scoop the dough into 1 1/2 tablespoon mounds (a medium cookie scoop works well) and place them 2 inches apart on the prepared sheets.
If any caramel pieces are exposed on the very bottom, nudge them toward the top or sides to reduce sticking.
Bake: Bake for 9–12 minutes, until the edges look set and lightly golden but the centers are still soft. The cookies will continue to firm up as they cool.
Finish: If caramel oozes onto the parchment, you can gently tuck it back with a spoon while it’s warm. Sprinkle a small pinch of flaky sea salt on top for contrast, if you like.
Cool: Let the cookies cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.
The caramel will set as they cool.