BTT CAG is spotty well when BTT is in the background

I have a CAG for Airtable.

I'm using RegEx, but I recently added the normal domain to see if that's the issue.

This is the filter:

activeWebsiteURL MATCHES "^https:\\/\\/airtable\\.com\\/app[a-zA-Z0-9]{12,}\\/tbl[a-zA-Z0-9]{12,}\\/viw[a-zA-Z0-9]{12,}(\\?[a-zA-Z0-9=&-]+)?$" OR activeWebsiteURL CONTAINS "airtable.com"

The triggers under this CAG don't work most of the time. I'm not sure if the BTT variables aren't updating fast enough, or if it's another issue.

I was on airtable.com, switched to YouTube, then back to Airtable, and it stopped working. It didn't work until I opened BTT (still didn't work), then I opened the CAG, and it started working again.

Sometimes it works, sometimes it doesn't. These are named triggers, by the way.

Could this be a problem with the BTT helper tool or permissions?

BTT version:
image

which browser are you using?

using Arc

Arc should be ok, however I haven't tried it myself

Currently BTT updates the active website in two situations:

  • when the app changes
  • when the title of the browser window changes

For arc the URL is basically retrieved with the same technique this apple script uses:

 tell application id "company.thebrowser.Browser" to set currentTabUrl to URL of active tab of front window

Tested it with chrome and Safari as well, same issue

It doesn't really update when I change the app or when the window name changes as a result of changing the browser tab..

Only updates when I have the update every 2sec option active

the script view doesn't auto refresh this if polling is disabled because it's one of the "On Demand" variables - this means it is only evaluated when the condition is checked in e.g. a CAG.
However if it refreshes correctly if you enable the 2s polling or press the refresh button, it is working as intended

It does update correctly on the 2sec option, but the trigger still are not working most of the time for some reason..

weird, it seems to work fine here. Maybe you can try showing a hud with the website URL to see whether it updates correctly in "real" usage:

The trigger I have setup inside the airtable GAC
CMD+Enter => Triggers a Named Trigger => Show HUD, Search for the save button, click it, Restore Mouse location

I used the variables list to inspect:

And I used an HUD / Floating menu:

This is the Named trigger:

This is still a huge issue for me, it works for some time, then it stops

Would it slow it down if I forced it to update the variables 1 or 2 sec? if there's a way to do that ofc
ofc I would prefer for it to be instant, as soon as I switch to the url to detect it..