Having to click twice on a button that is set to "tap" (O-S-C 1.26.2)

Hi!

Does anyone happen to know why do I have to click this button twice* for it to show visual feedback (and execute the script)? Weirdly enough, after a while—after switching back and forth between versions (1.25.7 and 1.26.2) and different running methods (running the osx release or the node release)—this odd behavior went away, but came back again. Without the script, the button works as expected (i.e. it gives visual feedback every time it's clicked).

The script the button is running is:

// the following triggers a BMTP translator that in turn runs an AppleScript
// the AppleScript plays/pauses VLC
// if VLC has the "open" window open, the O-S-C button shows feedback every time it's clicked
// so the problem seems to be caused by BMTP or VLC
if (value === 1) {
send('midi:SessionKiano','/note',7,7,20)
}

*When I say "twice" I mean two times consecutively, not fast double-click.

Odd, does it occur when there's nothing else but this button in the session ?

Hi! Now the button behaves normally... Don't know why. When I figure out though, I'll get back with the solution (or probable cause). Thanks!