Grant the desktop window only the app's own commands
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
build.rs declares the app's commands, and the editor window's capability grants exactly those, and nothing of Tauri's or its plugins' (the editor uses none; Rust opens every dialog), so a command added later is refused until granted. desktop-commands.test.mjs keeps the lists in step; desktop-access.mjs checks, in the real app through tauri-driver, that other commands are refused and thumbnails are made only in folders the user chose. docs/architecture.md explains why the isolation pattern isn't used (a compromised page script sends the same calls the page would; the decisions need Rust's state and native dialogs; it would encrypt every message and add dependencies) and why withGlobalTauri stays (__TAURI_INTERNALS__ is injected either way). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/e60479ad5c77daee54018d24dd176959597f5469
Open Grant the desktop window only the app's own commands in the timeline