Files
agent-desktop/console/src-tauri/capabilities/default.json
T
Pine 2290c103db fix: 白屏崩溃 + shell.open 权限
1. WebViewOverlayHost 内 WebPage 是 lazy 组件,脱离 Suspense 边界渲染
   → React 抛错整树卸载(纯背景无内容)。包 Suspense fallback=null。
2. Rust 端 app.shell().open 缺 shell:allow-open 权限
   → invoke open_external_link 被拒(shell.open not allowed)。补权限。
2026-09-07 22:05:19 +08:00

33 lines
887 B
JSON

{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": ["main"],
"remote": {
"urls": ["http://127.0.0.1:*", "http://localhost:*"]
},
"permissions": [
"backend",
"backend-download",
"core:default",
"core:webview:allow-internal-toggle-devtools",
"desktop-updater-check",
"desktop-updater-install",
"devtools",
"dialog:allow-open",
"dialog:allow-save",
"open-external-link",
"shell:allow-open",
"tray",
"core:window:allow-set-position",
"core:window:allow-set-size",
"core:window:allow-outer-position",
"core:window:allow-outer-size",
"core:window:allow-set-always-on-top",
"core:window:allow-scale-factor",
"core:window:allow-current-monitor",
"core:window:allow-close",
"core:window:allow-destroy"
]
}