Hello Arthur. Cakey cookies usually happen for a few common reasons. Too much flour is a primary culprit, as packing flour or using too much of it traps air and absorbs moisture, leading to a cake-like texture.
Another factor is leavening agents like baking powder or baking soda. Using too much causes the dough to rise too quickly and puff up like a cake.
Finally, check your fat and sugar ratios. Using more white sugar than brown sugar, or using shortening instead of butter, often yields a lighter, fluffier bake rather than a chewy one. Try using more brown sugar and melted butter next time.