Architectural Context:
The bridge-daemon.mjs script utilizes osascript to inject A2A wake payloads into the active IDE. It currently assumes that the appName (e.g. "Antigravity") directly correlates to the process name identified by System Events.
The Paradox:
For Electron-based IDE forks like Antigravity, the bundle name is "Antigravity" (so tell application "Antigravity" to activate succeeds), but the underlying process name exposed to macOS System Events is literally "Electron".
When the script runs tell process "Antigravity", it fails with exit code 1 because the process is named "Electron".
The Prescription:
We must decouple the appName activation from the process name targeting.
Instead of hardcoding tell process "${appName}", we will target the active process dynamically by resolving the frontmost application process directly:
set frontmostProcess to first application process whose frontmost is true
This is completely agnostic to the IDE's binary executable name and eliminates the fragility for Electron-based forks.
Architectural Context: The
bridge-daemon.mjsscript utilizesosascriptto inject A2A wake payloads into the active IDE. It currently assumes that theappName(e.g. "Antigravity") directly correlates to the process name identified bySystem Events.The Paradox: For Electron-based IDE forks like Antigravity, the bundle name is "Antigravity" (so
tell application "Antigravity" to activatesucceeds), but the underlying process name exposed to macOSSystem Eventsis literally "Electron". When the script runstell process "Antigravity", it fails with exit code 1 because the process is named "Electron".The Prescription: We must decouple the
appNameactivation from theprocessname targeting. Instead of hardcodingtell process "${appName}", we will target the active process dynamically by resolving the frontmost application process directly:set frontmostProcess to first application process whose frontmost is trueThis is completely agnostic to the IDE's binary executable name and eliminates the fragility for Electron-based forks.