дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-26 11:18:20 +02:00
Open Local Browser opens a Browser tool window hosting a Tauri child webview for a loopback HTTP(S) origin in a trusted local project: back, forward, reload, same-origin navigation, and Inspect Element, whose reviewed selection is appended to the Agent draft without being sent. The guest webview has an empty capability set; workbench capabilities are scoped by webview label, and application IPC and the plugin protocol reject guests by label. Workbench windows are tracked as their original WebviewWindow handles, because Tauri's single-webview lookup stops matching once a child is attached; window commands (including the parallel close flow) use those handles. Console URL clicks keep opening the external browser; loopback URLs get "Open in Browser Tool Window" in the Run and Debug console context menus. The panel uses a one-row icon toolbar, fills the panel with the page, has its own tool window icon and focuses the address field for a new session. Co-authored-by: dengliu <[email protected]> Co-authored-by: aditya-786 <[email protected]>
28 рядки
1019 B
JSON
28 рядки
1019 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Trusted workbench webviews only; child browser pages must not inherit their host window's permissions.",
|
|
"webviews": ["main", "project-*", "settings-*", "comparison-*", "diff-*", "editor-*", "deployment-*"],
|
|
"permissions": [
|
|
"core:default",
|
|
"core:window:allow-start-dragging",
|
|
"core:window:allow-start-resize-dragging",
|
|
"core:window:allow-minimize",
|
|
"core:window:allow-toggle-maximize",
|
|
"core:window:allow-internal-toggle-maximize",
|
|
"core:window:allow-set-title",
|
|
"core:window:allow-set-background-color",
|
|
"core:webview:allow-set-webview-zoom",
|
|
"core:webview:allow-set-webview-background-color",
|
|
"opener:default",
|
|
"opener:allow-reveal-item-in-dir",
|
|
"notification:default",
|
|
"dialog:default",
|
|
"core:window:allow-destroy",
|
|
"core:window:allow-close",
|
|
"core:window:allow-set-focus",
|
|
"core:window:allow-unminimize",
|
|
"core:window:allow-show"
|
|
]
|
|
}
|