Failed to get highlighted text
under review
Daniel Richard
I'm experiencing the same issue with version 1.21.1 (build 108) after the "App specific settings" feature was introduced.
Example:
- Highlight text and run any BoltAI command; works as expected.
- Use JavaScript copy and run any BoltAI command without highlighting any text; "Failed to get highlighted text"
https://codepen.io/ascoder1/pen/mdKowGN
Tried the fix accessibility permission method, but it doesn't resolve this.
Clipboard items, including text copied via JavaScript, aren't being processed because there's no highlighted text.
Is there any way to resolve this?
Daniel Nguyen
Daniel Richard: Interesting. It was never intended to process your clipboard. I use the clipboard to workaround when BoltAI unable to get the highlighted content. As a side effect, it was working the way you wanted but it's more of a bug to me.
Maybe I can make this an option (do not attempt to get the highlighted text, and instead process the clipboard directly)
Daniel Richard
Daniel Nguyen Sounds good! Maybe an option to copy last clipboard item as a fallback if no highlighted text was found?
Daniel Nguyen
Daniel Richard: I've added the
{clipboard}
variable in v1.22.0: https://boltai.com/changelogDaniel Nguyen
under review
Can you try resetting the Accessibility Permission: https://boltai.com/docs/troubleshooting/how-to-fix-accessbility-permission
There was a change in the app's entitlements so it could record audio and I figure it might cause this issue.
M
Melik Arslan
Daniel Nguyen this time I don't get the error, but can't get the highlighted text either. Having exact same issue reported in here: https://boltai.canny.io/bug-reports/p/ai-command-using-clipboard-instead-of-highlight
Daniel Nguyen
Melik Arslan: Thanks. I will take a deeper look.