My dogs have never been interested in coffee or tea, so never had to deal with that.
How=ever watch out for an open glass of beer

Oh and they adore strawberry shortcake. Of course that is my fault as they love strawberries, and in berry season, when I clean the berries they each get a strawberry.
And I caught my Razzman last night when I was finishing up dinner, he had snuck up onto the kitchen table and was happily chowing down on some raw cabbage I had shredded


That scamp. He got hell for that one.
In terms of nuts raisins grapes etal, I have some covered dishes when I set out those munchies, and then we before bedtime take them up off the end tables etc and put them out of temptation way.
I don't know if caffeine is diluted by milk or cream additive...