程序员阿江(Relakkes) 00a9cba066 fix: enable macOS window dragging and rename app to Claude Code Haha
Add core🪟allow-start-dragging permission and acceptFirstMouse
config to fix window dragging on macOS with overlay title bar. Also add
JS-based startDragging() fallback in AppShell and Sidebar.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 21:11:26 +08:00

36 lines
838 B
JSON

{
"$schema": "https://raw.githubusercontent.com/nicegui/nicegui/main/nicegui/static/tauri-capabilities-schema-v2.json",
"identifier": "default",
"description": "Default capabilities for Claude Code Desktop",
"windows": ["main"],
"permissions": [
"core:default",
"core:window:allow-start-dragging",
"shell:allow-open",
{
"identifier": "shell:allow-execute",
"allow": [
{
"args": true,
"name": "binaries/claude-server",
"sidecar": true
}
]
},
{
"identifier": "shell:allow-spawn",
"allow": [
{
"args": true,
"name": "binaries/claude-server",
"sidecar": true
}
]
},
"dialog:allow-open",
"dialog:allow-save",
"process:allow-exit",
"process:allow-restart"
]
}