Skip to content

Commit 7a9565b

Browse files
committed
fix(electron): grant clipboard-write permission for terminal copy
The permission handler added in b51c0b7 granted clipboard-read but not clipboard-sanitized-write, causing navigator.clipboard.writeText() to be silently denied — breaking Ctrl+Shift+C copy in the terminal.
1 parent e56a9fc commit 7a9565b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

electron/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ app.whenReady().then(() => {
142142
// Grant microphone and clipboard access (deny camera/video)
143143
session.defaultSession.setPermissionRequestHandler(
144144
(_webContents, permission, callback, details) => {
145-
if (permission === 'clipboard-read') {
145+
if (permission === 'clipboard-read' || permission === 'clipboard-sanitized-write') {
146146
return callback(true);
147147
}
148148
if (permission === 'media') {

0 commit comments

Comments
 (0)