How to assign a button for app basis and Global on logitech mouse

I want to configure button 4 for global and Safari - different commands- and the selection dialogue appear in latest build to choose between global and safari setup for button 4

It seems to work fine here, e.g. here Button 6 configured globally:

and here for finder

The finder version only triggers if finder is active.

How does your setup look like?

Got it, my bad- Safari also was configured and also using CAG