Clipboard not working in add-ons when using MacOS Companion app

Using various copy methods, no content is made available via the Clipboard (Finder → Edit → Show Clipboard) when using add-ons like Studio Code Server, ESPHome, or Advanced SSH & Web Terminal. This works correctly when using regular web browsers (Safari, Google Chrome) on the same computer.

One of the add-ons produced this warning: Unable to read from the browser’s clipboard. Please make sure you have granted access for this website to read from the clipboard.

Chip: Apple M2
macOS: Sequoia 15.0.1

You need to set the permission in the MacOS settings.

Where? I’ve been looking high and low

There should be a list of apps in the settings somewhere and in there you can set the permissions for that app.

Unlike iOS, the macOS System Settings app does not have a container for Apps. One can add apps to certain settings but I haven’t found a way to change permission on the clipboard.

It is not the clipboard you should change permission on, but the browser.
Apple could be implementing it in their browser also, if you are using Safari.
Safari and Firefox is the two mainstream browsers that fight for first place in being private, so I would not be surprised.

It’s the Companion app that is the problem, not the browsers. The app’s Preferences has no way to set permissions.

Turns out it’s a bug: Can't copy/paste in Files Editor add-on in macOS app (Safari works fine) · Issue #1154 · home-assistant/iOS · GitHub first reported 4 years ago.

I was a bit confused there and my answer was way off.
Sorry!

I am happy that you found the explanation though. :smiley: