fix: restore terminal paste and square workbar chrome

Terminal paste previously relied on the Renderer browser Clipboard API, which could be denied by Electron and leave the toolbar action unusable. Text clipboard access now goes through the trusted Main/Preload bridge, and the workbar tabs plus terminal toolbar use straight corners for a continuous docked appearance.

Release note: 修复终端工具栏粘贴可能因剪贴板权限被拒绝而失败的问题,并将工作栏页签与终端工具栏调整为直角样式。
This commit is contained in:
mesalogo
2026-09-03 17:12:27 +08:00
parent 7369c13bcf
commit b1e3101857
14 changed files with 120 additions and 8 deletions
+2
View File
@@ -255,6 +255,8 @@ const desktopApi: DesktopApi = {
}
},
clipboard: {
readText: () =>
ipcRenderer.invoke(ipcChannels.clipboardReadText) as Promise<string>,
writeText: async (text: string) => {
await ipcRenderer.invoke(ipcChannels.clipboardWriteText, text)
}