My late JRT loved the litterbox snackbar. The fact that she had to dig for her treats was an enjoyable bonus.
[I did not endorse this behavior, but I also couldn’t do a whole lot about it.]
I had this problem with my dogs and solved it. The automatic litter box is in the guest john on the main floor of my house. I keep the cat’s food and water there too. To solve the problem and give the kitty privacy from my two large dogs (85 lb. & 110 lb.), I put a small screw in the side of the door frame and left about 1/2 inch, including the head, protruding. Then I attached a fairly heavy string with a loop in the end to the door knob. The string is about 6 in. long, enough to let the cat in, but not the dogs, when the loop is placed over the protruding end of the screw. Problems of feline privacy and canine poop eating solved.