mirror of
https://github.com/hanzoai/edge.git
synced 2026-10-30 18:38:12 +00:00
navigator.clipboard.writeText is a promise the browser may refuse (no clipboard-write permission, an embedding frame, an insecure context). The three copy handlers only handled success, so a refusal surfaced as an uncaught rejection and the click did nothing. One copy() now serves all three: where the clipboard refuses, it selects the command in place so one keystroke still copies it, and the label says so. Co-Authored-By: Claude Opus 5.5 <[email protected]>