I compensate by testing a couple of hours
after my first sip of coffee and compensating with a tiny bit of insulin if
glucose levels are rising. I believe that in my case, my body starts producing adrenalin when the caffeine kicks in. And adrenalin can make sugars rise. So I suspect that this effect is different for different people. Just check often while drinking coffee so you can catch it and compensate if glucose levels rise.