From cd4b7021988bbc8767093c29ac0e46d38d70c338 Mon Sep 17 00:00:00 2001 From: esdrasrenan Date: Sun, 7 Dec 2025 03:58:49 -0300 Subject: [PATCH] Fix Tauri ACL permissions for chat windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add chat-* window pattern to allow chat popup windows - Add event permissions (listen, unlisten, emit) - Add window permissions (close, hide, show, set-focus) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- apps/desktop/src-tauri/capabilities/default.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src-tauri/capabilities/default.json b/apps/desktop/src-tauri/capabilities/default.json index d76705a..5fa25b5 100644 --- a/apps/desktop/src-tauri/capabilities/default.json +++ b/apps/desktop/src-tauri/capabilities/default.json @@ -1,10 +1,19 @@ { "$schema": "../gen/schemas/desktop-schema.json", "identifier": "default", - "description": "Capability for the main window", - "windows": ["main"], + "description": "Capability for all windows", + "windows": ["main", "chat-*"], "permissions": [ "core:default", + "core:event:default", + "core:event:allow-listen", + "core:event:allow-unlisten", + "core:event:allow-emit", + "core:window:default", + "core:window:allow-close", + "core:window:allow-hide", + "core:window:allow-show", + "core:window:allow-set-focus", "opener:default", "store:default", "store:allow-load",