Hi @Andreas_Hegenberg - hope you are well Reporting a regression bug that I found.
Describe the bug
- When I click on a custom context menu item to executed a named trigger that runs JavaScript and makes a fetch request, the script execution stalls and seemingly times out after a while. No error message is shown.
- Downgrading to version 4.270 fixes the issue
Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
- Automation & Named & Other Triggers
- Keyboard Shortcuts
Screenshots
Here are some steps to replicate the issuee:
My custom context menu:
One of the menu items triggers the named trigger that then runs JavaScript and makes a Fetch request to OpenAI.
And this is the named trigger that makes a request to OpenAI
- Points to note:
- Clicking on
Test Execute
runs the script successfully with the expected result - Changing the named trigger to be executed when e.g., "moving the mouse cursor to the top left of the screen also works.
- Clicking on
- However, when using it as a named trigger that gets triggered when one clicks on the respective context menu, the first
showHUD
function executes, but then the script stalls most likely trying to make the fetch request. - Unfortunately, there no error message is ever shown.
- Downgrading to version 4.270 fixed it for me though
Device information:
- Type of Mac: MacBook Pro 16-inch, 2021
- macOS version: Ventura 13.6
- BetterTouchTool version:
I've tried the following versions:
- 4.273 (latest) => Bug is present
- 4.272 => Bug is present
- 4.270 => Bug is NOT present
Additional information (e.g. crash logs, related issues, etc.):
- The app doesn't crash, but it seems that any external fetch request within the JavaScript execution is stalling.
Thanks for everything you do with BTT