Route terminal clipboard through tauri-plugin-clipboard-manager; bump to 0.2.3

navigator.clipboard.readText() triggers WebView2's "Allow clipboard access?"
permission prompt on every paste. The plugin goes through IPC + the OS
clipboard directly, so the prompt never fires.

Wired the Rust plugin, granted clipboard-manager:allow-{read,write}-text in
the capabilities manifest, swapped XtermPane's copy/paste handler to use
the plugin's readText/writeText.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
megaproxy 2026-05-22 23:27:43 +01:00
parent e94d2499d1
commit 29b15f19c1
7 changed files with 29 additions and 9 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "tiletopia"
version = "0.2.2"
version = "0.2.3"
description = "Tiling multi-terminal manager for WSL"
authors = ["megaproxy"]
edition = "2021"

View file

@ -6,6 +6,8 @@
"permissions": [
"core:default",
"core:event:default",
"core:window:default"
"core:window:default",
"clipboard-manager:allow-read-text",
"clipboard-manager:allow-write-text"
]
}

View file

@ -15,6 +15,7 @@ pub fn run() {
.try_init();
tauri::Builder::default()
.plugin(tauri_plugin_clipboard_manager::init())
.manage(PtyManager::new())
.invoke_handler(tauri::generate_handler![
commands::list_distros,

View file

@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "tiletopia",
"version": "0.2.2",
"version": "0.2.3",
"identifier": "com.megaproxy.tiletopia",
"build": {
"beforeDevCommand": "pnpm dev",