My 2017 GMC Yukon Denali will lock with the key fob inside. I found out the hard way that the engine shuts off after a certain time. I almost lost two dogs due to this “safety feature” We left the dogs in the running truck with ac on. It was 92 degrees out, luckily went back to check on them and the truck had shut off. We were very fortunate they were ok.