From def5e928025e2ec93bc598fc91b6e8ca9515ac8d Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 26 Jul 2026 22:28:35 +0800 Subject: [PATCH] fix(tauri): grant desktop-pet capability The `desktop-pet` window is created at startup but was absent from the capability window list, so every IPC call and event listener it made was rejected by the Tauri ACL. Because those calls are issued as `void invoke(...)` the rejections were swallowed, and the pet silently lost its runtime status link, dragging, context menu, and preference handling. Refs P1-13 / F-03. Co-Authored-By: Claude Opus 5 --- src-tauri/capabilities/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 07049f1..31a0a11 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -2,6 +2,6 @@ "$schema": "../gen/schemas/desktop-schema.json", "identifier": "default", "description": "Minimal capability set for the main AstrBot Desktop window.", - "windows": ["main", "quick-chat", "status-bubble"], + "windows": ["main", "quick-chat", "status-bubble", "desktop-pet"], "permissions": ["core:default"] }