Shortcut becomes permanently unlaunchable when the target process outlives its wrapper
Summary
If a wrapped app's target process survives its wrapper, the shortcut becomes permanently unlaunchable: clicking the icon does nothing at all, no window, no error, no bounce. A newly launched wrapper starts and exits within about a second, leaving the stale process in place. There is no recovery except killing the leftover process by hand, and nothing in the wrapper or in macOS ever does that.
This may be the same underlying problem as #24 ("Claude shortcuts won't open"), which reports the visible symptom without a diagnosis.
Environment
- Parall 2.3.0 (build 262), Mac App Store, Apple Silicon
- macOS 15 (Darwin 25.5.0)
- Target app: Claude Desktop 1.24012.9 (Electron), wrapped into six profile shortcuts
- Each wrapper:
ParallExecutable=/Applications/Claude.app/Contents/MacOS/Claude,ParallArguments=--user-data-dir="<profile dir>", a per-wrapperHOMEoverride,ParallEraseDataOnClose=false
Reproduction
On a test profile with nothing running:
open -a "/Applications/Claude (Test).app"— wrapper starts, target starts as its child, window appears. Normal.kill -9 <wrapper pid>(the wrapper only). The target process survives and is reparented to launchd (ppid 1). Its window is still on screen and still usable.open -a "/Applications/Claude (Test).app"again.
Expected: either the existing instance is brought forward, or a new wrapper attaches to it.
Actual: open returns 0. Sampling ps every 0.2s shows a new wrapper process appears, is present at t=0.2s, 0.4s and 0.6s, and is gone by t=0.8s. Nothing else changes. The unified log records a matching appDeath from loginwindow for the wrapper's bundle id.
From then on every launch attempt behaves identically. The shortcut is dead until the surviving target process is killed manually.
Note on measuring this: a ps taken a few seconds after open shows no new processes at all, which reads as "LaunchServices activated the app instead of launching it". That reading is wrong. Sub-second sampling is needed to see the wrapper at all.
How it happens in normal use
Step 2 above is artificial, but the same end state arrives on its own. On this machine the wrapper died by itself and left its target orphaned:
19:47:00.159 appDeath com.anthropic.claudefordesktop.helper
19:47:00.162 loginwindow: kLSNotifyApplicationAbnormalDeath, app must have crashed
(bundle /Applications/Claude (<Profile>).app)
19:47:00.163 appDeath app.parall.mac.<hash>
19:48:20.037 appDeath (relaunch attempt, died ~1s after starting)
19:48:49.934 appDeath (relaunch attempt, died ~1s after starting)
No crash report was produced: ReportCrash and spindump never fired for the event.
Two other wrappers on the same machine reached related states and stayed there: one alive for 18 days with zero child processes, and one where wrapper and target were both alive for 3 days with no usable window (that one also ignored its own menu items and an AppleEvent quit; only SIGTERM ended it).
What is not the cause
Checked and excluded, in case it saves you time:
- The target app auto-updating underneath a running wrapper. Squirrel/ShipIt logs record no bundle replacement on any of the failure dates, and the stale process's mapped
app.asarand executable inodes match the current bundle. - Memory pressure / jetsam. No
memorystatusor jetsam entries in the failure windows and noJetsamEventreport for those dates. - Electron's single-instance lock. No
SingletonLockfile exists in any profile directory. - Gatekeeper and code signing.
Suggested fixes, in order of usefulness
- On startup, detect a live target process already bound to this wrapper's
ParallDataStorageand adopt or activate it instead of exiting silently. This is the fix that ends the failure. - Surface the exit. If the new wrapper cannot proceed, an alert beats a silent 0.6-second exit. Right now the user has no signal at all that anything happened.
- Terminate the target when the wrapper exits abnormally, not only on a clean quit. Normal quit-with-target works correctly today (SIGKILLing the target reliably takes the wrapper down with it); it is the reverse direction, and abnormal wrapper death, that strands the target.
Happy to gather more diagnostics if useful.
Please update to v2.3.2, re-generate shortcut and confirm is it fixed
I mean I made fixes related to this, so it should be already fixed.
That issue must be fixed in v2.3.2. If it is not, please re-open it.