mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 20:01:07 +01:00
At launch the desktop app loaded every stored plug-in and every module in the Additional Plug-ins Folder on the UI thread before the window appeared, one after the other. A slow or panicking module held up or ended startup. - crates/plugins/src/loader.rs (new): `Loads` runs load jobs on up to four threads. Each job runs inside `catch_unwind`; a panic or a load that takes 10 s or longer fails that job alone, and the others go on. Outcomes come back in job order. - registry::FolderLoad and store::StoredLoad list in one step, load on the workers and install in file-name order. A module whose id was installed or removed in another window while it loaded is skipped. - The desktop app loads in the background only during launch; frames install the finished loads. Plug-in commands, commands that edit, exports, control requests and files opened at launch wait for the loads first; view commands and queries do not. - The launch marker names every plug-in still loading, not only the oldest. After a launch that stopped during the loads, the Safe Mode choice lists all of them, and Disable Listed Plug-ins and Continue turns them all off. `plugin.safeMode` adds `pendingItems`. A module whose load panicked is no longer named. Docs: docs/plugins.md, docs/mcp.md.