Update SYNC.md — reflects out-of-process architecture, current state, test instructions
Browse files23 unmodified lines24252627282930313233343523 unmodified lines- Write code- Add commentary## Status**Last push:** 2026-05-16 — Out-of-process rebuild BUILDS SUCCESSFULLY ✅**Architecture:** Plugin runs in separate helper process. Crash-safe.**Action needed:** Test in Ableton:1. Load PluginBridge on a track2. Click "Select Plugin" → Pro-Q 43. Click "Open GUI" → should open Pro-Q 4 in floating window4. Try Kickstart 2 → should NOT crash Ableton (helper crashes instead, shows reload button)5. curl -s http://localhost:16620/health23 unmodified lines24252627282930313233343536373839404142434445464748495051525354555623 unmodified lines- Write code- Add commentary## Architecture (Current)**Out-of-process hosting.** Two binaries:1. `PluginBridge.vst3` — thin shell (audio bridge + MCP server), loaded in Ableton2. `PluginBridgeHelper` — standalone exe bundled inside .vst3, hosts the actual pluginIf a plugin crashes → only Helper dies → Ableton survives → UI shows "Reload" button.## What Was Ditched- ❌ In-process plugin hosting (crashed Ableton with some plugins)- ❌ Plugin scanning via `PluginDirectoryScanner` (triggered NSAlert crashes)- ❌ `addDefaultFormats()` (deleted in JUCE 8)- ❌ `juce::Thread::setCurrentThreadPriority()` (removed in JUCE 8)- ❌ `MSG_NOSIGNAL` (doesn't exist on macOS)- ❌ Native title bar close button on Helper window (macOS won't deliver clicks to accessory process)- ❌ `activateIgnoringOtherApps` (steals focus from Ableton)## What's New- ✅ Out-of-process via shared memory + semaphores + Unix socket- ✅ Crash-safe — plugins that abort() only kill the helper- ✅ Plugin GUI as floating always-on-top window (no focus steal)- ✅ Toggle GUI via button in PluginBridge panel (Open GUI / Close GUI)- ✅ Plugin list from filesystem (no binary loading until user selects)- ✅ Native pthread priority for audio thread- ✅ `NSApplicationActivationPolicyAccessory` for helper (no Dock, no focus steal)## Status**Last push:** 2026-05-16 — GUI focus-steal fix (Accessory policy + orderFrontRegardless)**Build:** ✅ Passes**Test:** Plugin loads, audio routes, crash-safe confirmed, GUI toggle works**Remaining issue:** Testing GUI float behavior (should stay on top without switching apps)
SYNC.md+29-8